Re: [Mesa-dev] [PATCH mesa] vk/wsi: avoid reading uninitialised memory

2018-08-22 Thread Caio Marcelo de Oliveira Filho
On Tue, Jul 17, 2018 at 01:18:42PM +0100, Eric Engestrom wrote: > It will be ignored by x11_swapchain_result() anyway (because reaching > the `fail` label without setting `result` means the swapchain status was > already a hard error), but the compiler still complains about reading > uninitialised

[Mesa-dev] [PATCH mesa] vk/wsi: avoid reading uninitialised memory

2018-07-17 Thread Eric Engestrom
It will be ignored by x11_swapchain_result() anyway (because reaching the `fail` label without setting `result` means the swapchain status was already a hard error), but the compiler still complains about reading uninitialised memory. While at it, drop the unused assignment right before returning.