Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeitwolf112026-10-31 23:43:08 +0300
committerLeitwolf112026-10-31 23:43:08 +0300
commita22163b099e8a3834fb0427ced4e03e858ad3ea5 (patch)
treeac786439ffa1dac0a0bbe0f48b4182e80354fa8f
parent96eda873ea3b5599035471fbb3399c7f1984f644 (diff)
downloadcatch3-fix/clang-cl-unused-function.tar.gz
Keep the unused operator quiet under clang-cl toofix/clang-cl-unused-function
The test silenced -Wunused-function behind __GNUC__, which clang-cl does not define, so that build printed the warning.
-rw-r--r--tests/SelfTest/UsageTests/ToStringWhich.tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp b/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp
index 67fa9566..4e2d492c 100644
--- a/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp
+++ b/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp
@@ -10,7 +10,7 @@
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
// This has to be left enabled until end of the TU, because the GCC
// frontend reports operator<<(std::ostream& os, const has_maker_and_operator&)
// as unused anyway