From a948692dd62bede7babb1b400fb8e91f82b1e92f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 2 May 2023 17:16:26 -0400 Subject: Fix warning_level=everything on MacOS --- meson/suppressions/meson.build | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'meson/suppressions/meson.build') diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 97b8fc7..7716d53 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -23,6 +23,12 @@ if is_variable('cc') '-Wno-reserved-id-macro', '-Wno-variadic-macros', ] + + if not meson.is_cross_build() + c_suppressions += [ + '-Wno-poison-system-directories', + ] + endif endif if host_machine.system() == 'windows' @@ -116,10 +122,23 @@ if is_variable('objcpp') if objcpp.get_id() in ['clang', 'emscripten'] if warning_level == 'everything' - c_suppressions += [ + objcpp_suppressions += [ + '-Wno-c++98-compat-pedantic', '-Wno-deprecated-declarations', + '-Wno-old-style-cast', + '-Wno-padded', + '-Wno-reserved-id-macro', + '-Wno-weak-vtables', + '-Wno-zero-as-null-pointer-constant', ] + + if not meson.is_cross_build() + objcpp_suppressions += [ + '-Wno-poison-system-directories', + ] + endif endif + elif objcpp.get_id() == 'gcc' if warning_level == 'everything' objcpp_suppressions = gcc_common_warnings + [ -- cgit v1.2.1