mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-22 10:12:10 +01:00
build: Explicitly disable -Wmissing-field-initializers
This is on by default at -Werror level in the macOS CI build, causing the build to fail. We do not consider missing field initializers to be a bug: an initializer that does not mention all fields has a well-defined meaning (remaining fields are initialized as if via .field = 0). Resolves: https://gitlab.gnome.org/GNOME/glib/-/issues/2812 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
f64f88baae
commit
ff6a2b3051
@ -495,6 +495,8 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
'-Werror=missing-include-dirs',
|
||||
'-Werror=pointer-arith',
|
||||
'-Werror=unused-result',
|
||||
# Missing field initializers have a well-defined meaning
|
||||
'-Wno-missing-field-initializers',
|
||||
]
|
||||
|
||||
warning_c_args = warning_common_args + [
|
||||
|
Loading…
x
Reference in New Issue
Block a user