mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Supress more warnings
This commit is contained in:
parent
7df1ba0926
commit
0afab69c7d
@ -194,6 +194,7 @@ namespace Catch
|
|||||||
return setErrorMode( m_command + " does not accept arguments" );
|
return setErrorMode( m_command + " does not accept arguments" );
|
||||||
m_config.setShowHelp( true );
|
m_config.setShowHelp( true );
|
||||||
break;
|
break;
|
||||||
|
case modeError:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -211,6 +211,11 @@ namespace Catch
|
|||||||
case ResultWas::ExplicitFailure:
|
case ResultWas::ExplicitFailure:
|
||||||
m_config.stream() << "failed with message: '" << resultInfo.getMessage() << "'";
|
m_config.stream() << "failed with message: '" << resultInfo.getMessage() << "'";
|
||||||
break;
|
break;
|
||||||
|
case ResultWas::Unknown: // These cases are here to prevent compiler warnings
|
||||||
|
case ResultWas::Ok:
|
||||||
|
case ResultWas::FailureBit:
|
||||||
|
case ResultWas::ExpressionFailed:
|
||||||
|
case ResultWas::Exception:
|
||||||
default:
|
default:
|
||||||
if( !resultInfo.hasExpression() )
|
if( !resultInfo.hasExpression() )
|
||||||
{
|
{
|
||||||
|
@ -156,6 +156,10 @@ namespace Catch
|
|||||||
case ResultWas::Ok:
|
case ResultWas::Ok:
|
||||||
stats.m_element = "success";
|
stats.m_element = "success";
|
||||||
break;
|
break;
|
||||||
|
case ResultWas::Unknown:
|
||||||
|
case ResultWas::FailureBit:
|
||||||
|
case ResultWas::Exception:
|
||||||
|
case ResultWas::DidntThrowException:
|
||||||
default:
|
default:
|
||||||
stats.m_element = "unknown";
|
stats.m_element = "unknown";
|
||||||
break;
|
break;
|
||||||
|
@ -153,6 +153,12 @@ namespace Catch
|
|||||||
.writeText( resultInfo.getMessage() );
|
.writeText( resultInfo.getMessage() );
|
||||||
m_currentTestSuccess = false;
|
m_currentTestSuccess = false;
|
||||||
break;
|
break;
|
||||||
|
case ResultWas::Unknown:
|
||||||
|
case ResultWas::Ok:
|
||||||
|
case ResultWas::FailureBit:
|
||||||
|
case ResultWas::ExpressionFailed:
|
||||||
|
case ResultWas::Exception:
|
||||||
|
case ResultWas::DidntThrowException:
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user