mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 00:47:56 +00:00
Got rid of some warnings
This commit is contained in:
parent
ecf934b045
commit
78c92e68aa
3 changed files with 27 additions and 9 deletions
|
@ -50,6 +50,11 @@ namespace Catch {
|
|||
}
|
||||
private:
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunreachable-code"
|
||||
#endif
|
||||
|
||||
bool isMatch( const TestCaseInfo& testCase ) const {
|
||||
const std::string& name = testCase.getName();
|
||||
|
||||
|
@ -63,9 +68,13 @@ namespace Catch {
|
|||
case WildcardAtBothEnds:
|
||||
return contains( name, m_stringToMatch );
|
||||
}
|
||||
|
||||
throw std::logic_error( "Unhandled wildcard type" );
|
||||
}
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
std::string m_stringToMatch;
|
||||
IfFilterMatches::DoWhat m_filterType;
|
||||
WildcardPosition m_wildcardPosition;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue