From 71b93f63dddeb71e9489450aaed8969e38021c21 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 18 Apr 2024 13:25:07 +0200 Subject: [PATCH] radv: initialize a couple of variables Because musl will lose (in the next commit) the ability to see that they are initialized... Part-of: --- src/amd/vulkan/radv_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index b819b7f4b1f..bec67b9c0f0 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -2008,7 +2008,7 @@ radv_dcc_formats_compatible(enum amd_gfx_level gfx_level, VkFormat format1, VkFo { const struct util_format_description *desc1, *desc2; enum dcc_channel_type type1, type2; - unsigned size1, size2; + unsigned size1 = 0, size2 = 0; int i; /* All formats are compatible on GFX11. */