mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03: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:
parent
fc5688375c
commit
3156024532
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user