aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2020-05-22 14:00:38 -0700
committerKristian H. Kristensen <[email protected]>2020-05-26 12:46:18 -0700
commit06ab93d6949924a353aada939935737dfdcbae84 (patch)
tree1e3e0cad71c9eb848f41bd9f2f60d77062f41c67 /src
parent697fe1c8015d14b6d2ebc5ba70cd05439ef1490e (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/vulkan/tu_formats.c2
1 files changed, 1 insertions, 1 deletions
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;