From bcb0b8c7f6fe5fce7abce7b94e37eeffba2a0d17 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Wed, 26 Feb 2025 01:06:25 -0800 Subject: [PATCH] venus: suppress a few -Wmaybe-uninitialized Signed-off-by: Yiwei Zhang Part-of: --- src/virtio/vulkan/vn_physical_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c index aadf6601a8b..c349245f22c 100644 --- a/src/virtio/vulkan/vn_physical_device.c +++ b/src/virtio/vulkan/vn_physical_device.c @@ -689,7 +689,7 @@ vn_physical_device_init_queue_family_properties( struct vn_instance *instance = physical_dev->instance; struct vn_ring *ring = instance->ring.ring; const VkAllocationCallbacks *alloc = &instance->base.base.alloc; - uint32_t count; + uint32_t count = 0; vn_call_vkGetPhysicalDeviceQueueFamilyProperties2( ring, vn_physical_device_to_handle(physical_dev), &count, NULL); @@ -1239,7 +1239,7 @@ vn_physical_device_init_renderer_extensions( const VkAllocationCallbacks *alloc = &instance->base.base.alloc; /* get renderer extensions */ - uint32_t count; + uint32_t count = 0; VkResult result = vn_call_vkEnumerateDeviceExtensionProperties( ring, vn_physical_device_to_handle(physical_dev), NULL, &count, NULL); if (result != VK_SUCCESS) @@ -1499,7 +1499,7 @@ vn_instance_enumerate_physical_device_groups_locked( const VkAllocationCallbacks *alloc = &instance->base.base.alloc; VkResult result; - uint32_t count; + uint32_t count = 0; result = vn_call_vkEnumeratePhysicalDeviceGroups(ring, instance_handle, &count, NULL); if (result != VK_SUCCESS)