From ff6a2b3051be672eeda972614c6520774126cf02 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 14 Nov 2022 09:26:20 +0000 Subject: 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 --- meson.build | 2 ++ 1 file changed, 2 insertions(+) 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 + [ -- cgit v1.2.1