summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-07-21 17:48:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-07-21 17:48:41 +0300
commit789fe2484b4c1229a9f1ee55508aacf5567342df (patch)
treeb32b903824d1311f50b865868b8ccb8d4b0aa2fb
parent89c5899ffa2e67a26cf17015e0d760713d947fe7 (diff)
Disable Clang 10 compilation warnings for psvi-writer test
-rw-r--r--libxerces-c/tests/psvi-writer/buildfile22
1 files 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
+ }
+}