From b5c4fa663e02fa0a04e7bfa04c86ba5a2206ceec Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Sep 2024 19:21:16 -0400 Subject: Strengthen clang warnings on non-Darwin --- meson/suppressions/meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'meson') diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 04341bd..d82ce61 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -21,14 +21,12 @@ if is_variable('cc') '-Wno-cast-qual', '-Wno-declaration-after-statement', '-Wno-disabled-macro-expansion', - '-Wno-documentation-unknown-command', # MacOS '-Wno-double-promotion', '-Wno-float-conversion', '-Wno-float-equal', '-Wno-implicit-float-conversion', '-Wno-missing-noreturn', '-Wno-padded', - '-Wno-reserved-id-macro', # MacOS '-Wno-shorten-64-to-32', '-Wno-sign-conversion', '-Wno-switch-default', @@ -40,6 +38,13 @@ if is_variable('cc') '-Wno-poison-system-directories', ] endif + + if host_machine.system() == 'darwin' + c_suppressions += [ + '-Wno-documentation-unknown-command', + '-Wno-reserved-id-macro', + ] + endif endif if warning_level in ['everything', '3'] -- cgit v1.2.1