diff options
| author | Phil Nash | 2014-05-19 17:57:01 +0100 |
|---|---|---|
| committer | Phil Nash | 2014-05-19 17:57:01 +0100 |
| commit | b5d1cfe441c2d8a7b164bf7aa848d89611d39be3 (patch) | |
| tree | 8e6aa22738b317d22105074002e6de6c804b0c18 /include/internal | |
| parent | ee956bc94e2c47e17a6d3c723a94a28437914671 (diff) | |
| download | catch3-b5d1cfe441c2d8a7b164bf7aa848d89611d39be3.tar.gz | |
Suppress switch statement warning
Diffstat (limited to 'include/internal')
| -rw-r--r-- | include/internal/catch_test_spec.hpp | 9 |
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; |