vulkan/wsi: initialise image_index to 0 in x11_manage_fifo_queues
authorKai Wasserbäch <kai@dev.carbon-project.org>
Fri, 17 Aug 2018 14:32:33 +0000 (16:32 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 18 Aug 2018 00:34:19 +0000 (10:34 +1000)
commit2c020dbf063b55d96b1e799fb8dd6ec335b84c33
tree5979b03f53c26728b1c55e537dab180c6b213486
parent6f0647c0b207cfe0805eb899c2d97703ae00b1e7
vulkan/wsi: initialise image_index to 0 in x11_manage_fifo_queues

Supresses a maybe-uninitialized warning with GCC 8.

Note: image_index should always be initialised due to the result check,
      but the compiler doesn't see that.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/vulkan/wsi/wsi_common_x11.c