1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-02-06 09:46:55 +01:00
parent fc5688375c
commit 3156024532

View File

@ -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