diff options
author | Simon McVittie <smcv@collabora.com> | 2022-11-14 09:26:20 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-11-14 09:26:58 +0000 |
commit | ff6a2b3051be672eeda972614c6520774126cf02 (patch) | |
tree | 5e1bb5cbfa2d6b2a5d550465ae015d07d801e8b3 | |
parent | f64f88baaeaca277687e6231b3cea6d14a26996b (diff) | |
download | glib-wip/smcv/warnings.tar.gz |
build: Explicitly disable -Wmissing-field-initializerswip/smcv/warnings
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>
-rw-r--r-- | meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 0edea24a9..3151d7ee3 100644 --- a/meson.build +++ b/meson.build @@ -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 + [ |