From 5590b407f8077c1ef0a25cd2948f973000b32683 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 2 Nov 2022 14:17:42 -0400 Subject: Suppress warnings in C++ test This is necessary because the global warnings may be stricter when building as a subproject. --- meson.build | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 21b2aa6..bc084b4 100644 --- a/meson.build +++ b/meson.build @@ -476,7 +476,9 @@ if not get_option('tests').disabled() cpp_test_args = [] if cpp.get_id() == 'clang' cpp_test_args = [ - '-Wall', + '-Weverything', + '-Wno-c++98-compat', + '-Wno-c++98-compat-pedantic', '-Wno-nullability-extension', '-Wno-padded', '-Wno-zero-as-null-pointer-constant', @@ -488,7 +490,14 @@ if not get_option('tests').disabled() '-Wno-unused-const-variable', ] elif cpp.get_id() == 'msvc' - cpp_test_args = ['/W3'] + cpp_test_args = [ + '/Wall', + '/wd4514', # unreferenced inline function has been removed + '/wd4710', # function not inlined + '/wd4711', # function selected for automatic inline expansion + '/wd4820', # padding added after construct + '/wd5039', # throwing function passed to C (winbase.h) + ] endif test( -- cgit v1.2.1