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

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorPhil Nash2014-05-19 17:57:01 +0100
committerPhil Nash2014-05-19 17:57:01 +0100
commitb5d1cfe441c2d8a7b164bf7aa848d89611d39be3 (patch)
tree8e6aa22738b317d22105074002e6de6c804b0c18 /include/internal
parentee956bc94e2c47e17a6d3c723a94a28437914671 (diff)
downloadcatch3-b5d1cfe441c2d8a7b164bf7aa848d89611d39be3.tar.gz
Suppress switch statement warning
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/catch_test_spec.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/internal/catch_test_spec.hpp b/include/internal/catch_test_spec.hpp
index 762f263e..dde6f207 100644
--- a/include/internal/catch_test_spec.hpp
+++ b/include/internal/catch_test_spec.hpp
@@ -56,6 +56,15 @@ namespace Catch {
case WildcardAtBothEnds:
return contains( toLower( testCase.name ), m_name );
}
+
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunreachable-code"
+#endif
+ throw std::logic_error( "Unknown enum" );
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
}
private:
std::string m_name;