Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Keep the unused operator quiet under clang-cl too

The test silenced -Wunused-function behind __GNUC__, which clang-cl does not
define, so that build printed the warning.
Commit
a22163b099e8a3834fb0427ced4e03e858ad3ea5
Author
Leitwolf11 ·
Parents
96eda873ea3b

Files · Download .tar.gz

Changes

 tests/SelfTest/UsageTests/ToStringWhich.tests.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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