diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build index b44b161584..ed48fd6aa0 100644 --- a/meson.build +++ b/meson.build @@ -256,7 +256,6 @@ test_flags = ['-Werror=implicit-function-declaration', '-Wdisabled-optimization', '-Wstrict-prototypes', '-Wno-format-zero-length', - '-Werror=format-security', '-Wno-redundant-decls', '-Wvla', '-Wno-format-truncation', @@ -265,6 +264,10 @@ test_flags = ['-Werror=implicit-function-declaration', flags += cc.get_supported_arguments(test_flags) +if cc.has_multi_arguments('-Wformat', '-Werror=format-security') + flags += '-Werror=format-security' +endif + if cc.get_id() == 'gcc' gcc_flags = ['-Wundef', '-Wmissing-prototypes', '-Wshadow', '-Wno-switch', '-Wparentheses', '-Wpointer-arith', |