mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
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.
This commit is contained in:
parent
d665d2fb89
commit
96a6e05f0b
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user