From: Lionel Landwerlin Date: Fri, 2 Sep 2022 08:53:12 +0000 (+0300) Subject: anv: silence fedora build warning X-Git-Tag: upstream/22.3.5~3717 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba1cc067706e8b9bf2d34325cd9581bd2267d946;p=platform%2Fupstream%2Fmesa.git anv: silence fedora build warning Signed-off-by: Lionel Landwerlin Part-of: --- diff --git a/src/intel/vulkan/anv_allocator.c b/src/intel/vulkan/anv_allocator.c index ce64811..823f6c8 100644 --- a/src/intel/vulkan/anv_allocator.c +++ b/src/intel/vulkan/anv_allocator.c @@ -1102,7 +1102,7 @@ anv_state_pool_alloc_no_vg(struct anv_state_pool *pool, pool->block_size, &padding); /* Every time we allocate a new state, add it to the state pool */ - uint32_t idx; + uint32_t idx = 0; UNUSED VkResult result = anv_state_table_add(&pool->table, &idx, 1); assert(result == VK_SUCCESS);