From 5e1a2010cdc266ade0f6b8048d333978b9884e7b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 26 Oct 2022 21:49:40 -0400 Subject: Suppress test warnings in strict builds as a subproject --- meson.build | 13 +++++++++++-- 1 file 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 -- cgit v1.2.1