From 6cabd44a2b696e430b3a1b660a2ba53691bd8c7d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 18 Aug 2023 21:06:59 +0200 Subject: [PATCH] build: Add -Woverride-init That's a gcc warning (clang has the equivalent -Winitializer-overrides, but that one is included in -Wall) that complains about things like: VkOffset3D offset = { .x = pt.x, .x = pt.y, .y = 0 }; So you don't have to spend a few hours trying to understand what's going on before realizing your copy/paste skills are substandard. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 5eef06e342..7af8d0383c 100644 --- a/meson.build +++ b/meson.build @@ -309,6 +309,7 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' 'missing-declarations', 'missing-prototypes', 'nonnull', + 'override-init', 'pointer-to-int-cast', 'redundant-decls', 'return-type', -- 2.30.2