summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-26 21:49:40 -0400
committerDavid Robillard <d@drobilla.net>2022-10-26 21:49:40 -0400
commit5e1a2010cdc266ade0f6b8048d333978b9884e7b (patch)
tree0dd4da4465458766d3311543ed0563e8eefbe7c6
parent888e98481897824bec9f310a04b5ecec055189f2 (diff)
downloadzix-5e1a2010cdc266ade0f6b8048d333978b9884e7b.tar.gz
zix-5e1a2010cdc266ade0f6b8048d333978b9884e7b.tar.bz2
zix-5e1a2010cdc266ade0f6b8048d333978b9884e7b.zip
Suppress test warnings in strict builds as a subproject
-rw-r--r--meson.build13
1 files changed, 11 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 540537d..9762339 100644
--- a/meson.build
+++ b/meson.build
@@ -471,9 +471,18 @@ if not get_option('tests').disabled()
cpp_test_args = []
if cpp.get_id() == 'clang'
- cpp_test_args = ['-Wall']
+ cpp_test_args = [
+ '-Wall',
+ '-Wno-nullability-extension',
+ '-Wno-padded',
+ '-Wno-zero-as-null-pointer-constant',
+ ]
elif cpp.get_id() == 'gcc'
- cpp_test_args = ['-Wall']
+ cpp_test_args = [
+ '-Wall',
+ '-Wno-padded',
+ '-Wno-unused-const-variable',
+ ]
elif cpp.get_id() == 'msvc'
cpp_test_args = ['/W3']
endif