forked from catchorg/Catch2
Suppress switch statement warning
This commit is contained in:
@@ -56,6 +56,15 @@ namespace Catch {
|
|||||||
case WildcardAtBothEnds:
|
case WildcardAtBothEnds:
|
||||||
return contains( toLower( testCase.name ), m_name );
|
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:
|
private:
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
|
Reference in New Issue
Block a user