From b1e2293f8c6a24f3cede70aa0a6af895106952a5 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Mon, 13 May 2024 22:15:33 +0000 Subject: [PATCH] vulkan: cast to avoid -Wswitch for Android struct beyond VkStructureType Fixes: 1afbf0ba4a8 ("vulkan/properties: support Android in the property generator") Signed-off-by: Yiwei Zhang Reviewed-by: Konstantin Seurer Tested-by: Oskar Viljasaar Part-of: --- src/vulkan/util/vk_physical_device_properties_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vulkan/util/vk_physical_device_properties_gen.py b/src/vulkan/util/vk_physical_device_properties_gen.py index 2f5b7fd1213..3438738093e 100644 --- a/src/vulkan/util/vk_physical_device_properties_gen.py +++ b/src/vulkan/util/vk_physical_device_properties_gen.py @@ -169,7 +169,7 @@ vk_common_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, % endfor vk_foreach_struct(ext, pProperties->pNext) { - switch (ext->sType) { + switch ((int32_t)ext->sType) { % for property_struct in property_structs: % if property_struct.is_android: #ifdef ANDROID