Mesa (master): turnip: Use {} initializer to silence warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 26 20:06:05 UTC 2020


Module: Mesa
Branch: master
Commit: 06ab93d6949924a353aada939935737dfdcbae84
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06ab93d6949924a353aada939935737dfdcbae84

Author: Kristian H. Kristensen <hoegsberg at google.com>
Date:   Fri May 22 14:00:38 2020 -0700

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 <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>

---

 src/freedreno/vulkan/tu_formats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the mesa-commit mailing list