aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/root.build2
-rw-r--r--tests/build/root.build2
2 files changed, 4 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build
index 1526ef0..3ee60eb 100644
--- a/build/root.build
+++ b/build/root.build
@@ -23,6 +23,8 @@ elif ($cxx.id == 'gcc')
cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object \
-Wno-stringop-overread
}
+elif ($cxx.id.type == 'clang' && $cxx.version.major >= 15)
+ cxx.coptions += -Wno-unqualified-std-cast-call
# Load the cli module but only if it's available. This way a distribution
# that includes pre-generated files can be built without installing cli.
diff --git a/tests/build/root.build b/tests/build/root.build
index a1e935c..9c898e7 100644
--- a/tests/build/root.build
+++ b/tests/build/root.build
@@ -16,6 +16,8 @@ if ($cxx.class == 'msvc')
elif ($cxx.id == 'gcc')
cxx.coptions += -Wno-maybe-uninitialized -Wno-free-nonheap-object \
-Wno-stringop-overread
+elif ($cxx.id.type == 'clang' && $cxx.version.major >= 15)
+ cxx.coptions += -Wno-unqualified-std-cast-call
# Every exe{} in this subproject is by default a test.
#