diff options
| author | Leitwolf11 | 2026-10-31 23:43:08 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-31 23:43:08 +0300 |
| commit | a22163b099e8a3834fb0427ced4e03e858ad3ea5 (patch) | |
| tree | ac786439ffa1dac0a0bbe0f48b4182e80354fa8f | |
| parent | 96eda873ea3b5599035471fbb3399c7f1984f644 (diff) | |
| download | catch3-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.cpp | 2 |
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 |