From: Kristian H. Kristensen Date: Fri, 22 May 2020 21:00:38 +0000 (-0700) Subject: turnip: Use {} initializer to silence warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06ab93d6949924a353aada939935737dfdcbae84;p=mesa.git turnip: Use {} initializer to silence warning We're already using the {} syntax elsewhere in turnip. src/freedreno/vulkan/tu_formats.c:828:71: warning: suggest braces around initialization of subobject [-Wmissing-braces] Reviewed-by: Rob Clark Part-of: --- diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c index 11c9d05ca30..3623919993b 100644 --- a/src/freedreno/vulkan/tu_formats.c +++ b/src/freedreno/vulkan/tu_formats.c @@ -825,7 +825,7 @@ fail: * the implementation for use in vkCreateImage, then all members of * imageFormatProperties will be filled with zero. */ - base_props->imageFormatProperties = (VkImageFormatProperties) { 0 }; + base_props->imageFormatProperties = (VkImageFormatProperties) {}; } return result;