diff options
author | David Robillard <d@drobilla.net> | 2023-05-02 17:16:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-02 17:16:26 -0400 |
commit | a948692dd62bede7babb1b400fb8e91f82b1e92f (patch) | |
tree | 5ba1308c77dff8f3722ab0dd3df9bd9104d9b05b /meson/suppressions | |
parent | 45d343fe76333ed82bc65bfa0114d5889e3e5ad4 (diff) | |
download | suil-a948692dd62bede7babb1b400fb8e91f82b1e92f.tar.gz suil-a948692dd62bede7babb1b400fb8e91f82b1e92f.tar.bz2 suil-a948692dd62bede7babb1b400fb8e91f82b1e92f.zip |
Fix warning_level=everything on MacOS
Diffstat (limited to 'meson/suppressions')
-rw-r--r-- | meson/suppressions/meson.build | 21 |
1 files changed, 20 insertions, 1 deletions
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 + [ |