From 31560245321b239b041b65caa26777a3f34587be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 6 Feb 2023 09:46:55 +0100 Subject: [PATCH] meson: enable -Wzero-length-bounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index d1e39c8a5a..bfc86857d6 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