From 789fe2484b4c1229a9f1ee55508aacf5567342df Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 21 Jul 2020 17:48:41 +0300 Subject: Disable Clang 10 compilation warnings for psvi-writer test --- libxerces-c/tests/psvi-writer/buildfile | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/libxerces-c/tests/psvi-writer/buildfile b/libxerces-c/tests/psvi-writer/buildfile index 9a5d84d..4ba1d15 100644 --- a/libxerces-c/tests/psvi-writer/buildfile +++ b/libxerces-c/tests/psvi-writer/buildfile @@ -5,7 +5,21 @@ import libs = libxerces-c%lib{xerces-c} exe{driver}: PSVIWriter/{hxx cxx}{*} $libs testscript -# Disable MSVC warnings that pop up with /W3. -# -if ($cxx.class == 'msvc') - cxx.coptions += /wd4267 +switch $cxx.class +{ + case 'gcc' + { + # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem + # to care about these and it is not easy to disable specific warnings in a + # way that works across compilers/version (some -Wno-* options are only + # recognized in newer versions). + # + cxx.coptions += -Wno-all -Wno-extra + } + case 'msvc' + { + # Disable warnings that pop up with /W3. + # + cxx.coptions += /wd4267 + } +} -- cgit v1.1