From 96c13aeb9788d5317ce1b8a0d9c3e34a6f010de4 Mon Sep 17 00:00:00 2001 From: Elizabeth Figura Date: Thu, 24 Oct 2024 17:36:20 -0500 Subject: [PATCH] tests: Silence a bogus -Wmaybe-uninitialized. --- tests/shader_runner_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shader_runner_vulkan.c b/tests/shader_runner_vulkan.c index c9fddce3..079af6bf 100644 --- a/tests/shader_runner_vulkan.c +++ b/tests/shader_runner_vulkan.c @@ -1355,8 +1355,8 @@ static struct resource_readback *vulkan_runner_get_resource_readback(struct shad else { struct resource_desc resolved_desc = resource->r.desc; + VkImage resolved_image = VK_NULL_HANDLE; VkDeviceMemory resolved_memory; - VkImage resolved_image; aspect_mask = (resource->r.desc.type == RESOURCE_TYPE_DEPTH_STENCIL) ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_ASPECT_COLOR_BIT;