mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 19:22:25 +01:00
Fixed a couple of warning regressions
This commit is contained in:
parent
ebb4677089
commit
79e4327329
@ -319,6 +319,7 @@ namespace Catch {
|
|||||||
static void invokeTestCase( TestCase const& testCase ) {
|
static void invokeTestCase( TestCase const& testCase ) {
|
||||||
FatalConditionHandler fatalConditionHandler; // Handle signals
|
FatalConditionHandler fatalConditionHandler; // Handle signals
|
||||||
testCase.invoke();
|
testCase.invoke();
|
||||||
|
fatalConditionHandler.reset(); // Not strictly needed but avoids warnings
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -61,7 +61,6 @@ std::string toString( std::string const& value ) {
|
|||||||
std::string subs;
|
std::string subs;
|
||||||
switch( s[i] ) {
|
switch( s[i] ) {
|
||||||
case '\r': subs = "\\r"; break;
|
case '\r': subs = "\\r"; break;
|
||||||
case '\l': subs = "\\l"; break;
|
|
||||||
case '\n': subs = "\\n"; break;
|
case '\n': subs = "\\n"; break;
|
||||||
case '\t': subs = "\\t"; break;
|
case '\t': subs = "\\t"; break;
|
||||||
default: break;
|
default: break;
|
||||||
|
Loading…
Reference in New Issue
Block a user