mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 22:19:25 +00:00
Suppress switch statement warning
This commit is contained in:
parent
ee956bc94e
commit
b5d1cfe441
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue