From: Zbigniew Jędrzejewski-Szmek Date: Mon, 6 Feb 2023 08:46:55 +0000 (+0100) Subject: meson: enable -Wzero-length-bounds X-Git-Tag: v253-rc3~38^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F26321%2Fhead;p=thirdparty%2Fsystemd.git meson: enable -Wzero-length-bounds This will warn if fake flexible arrays are re-introduced. I'm not using -Werror=… because we may still get warnings when compiling against old kernel headers. We can crank this up to error later. --- diff --git a/meson.build b/meson.build index d1e39c8a5a7..bfc86857d62 100644 --- a/meson.build +++ b/meson.build @@ -389,6 +389,7 @@ possible_common_cc_flags = [ '-Wsuggest-attribute=noreturn', '-Wunused-function', '-Wwrite-strings', + '-Wzero-length-bounds', # negative arguments are correctly detected starting with meson 0.46. '-Wno-error=#warnings', # clang