Fixed a couple of warning regressions

This commit is contained in:
Phil Nash 2015-11-23 18:45:40 +00:00
parent ebb4677089
commit 79e4327329
2 changed files with 1 additions and 1 deletions

View File

@ -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:

View File

@ -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;