From ba1cc067706e8b9bf2d34325cd9581bd2267d946 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 2 Sep 2022 11:53:12 +0300 Subject: [PATCH] anv: silence fedora build warning Signed-off-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4