mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-26 05:06:58 +00:00
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>
This commit is contained in:
parent
6f0647c0b2
commit
2c020dbf06
@ -991,7 +991,7 @@ x11_manage_fifo_queues(void *state)
|
||||
* before that point so the client should be able to acquire any image
|
||||
* other than the currently presented one.
|
||||
*/
|
||||
uint32_t image_index;
|
||||
uint32_t image_index = 0;
|
||||
result = wsi_queue_pull(&chain->present_queue, &image_index, INT64_MAX);
|
||||
assert(result != VK_TIMEOUT);
|
||||
if (result < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user