turnip: Use {} initializer to silence warning
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 22 May 2020 21:00:38 +0000 (14:00 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Tue, 26 May 2020 19:46:18 +0000 (12:46 -0700)
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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>

src/freedreno/vulkan/tu_formats.c

index 11c9d05ca306321fa8161c611e8aa6f8c4a3add7..3623919993b34ec9ed20d23be76d962442497586 100644 (file)
@@ -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;