mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 04:00:32 +01:00
venus: suppress a few -Wmaybe-uninitialized
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33757>
This commit is contained in:
parent
f9fe08740a
commit
bcb0b8c7f6
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue