From 79e432732925ca3c280124c3c5e70afefbc19746 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 23 Nov 2015 18:45:40 +0000 Subject: [PATCH] Fixed a couple of warning regressions --- include/internal/catch_run_context.hpp | 1 + include/internal/catch_tostring.hpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_run_context.hpp b/include/internal/catch_run_context.hpp index cb926823..643c6840 100644 --- a/include/internal/catch_run_context.hpp +++ b/include/internal/catch_run_context.hpp @@ -319,6 +319,7 @@ namespace Catch { static void invokeTestCase( TestCase const& testCase ) { FatalConditionHandler fatalConditionHandler; // Handle signals testCase.invoke(); + fatalConditionHandler.reset(); // Not strictly needed but avoids warnings } private: diff --git a/include/internal/catch_tostring.hpp b/include/internal/catch_tostring.hpp index 687a9117..52f12350 100644 --- a/include/internal/catch_tostring.hpp +++ b/include/internal/catch_tostring.hpp @@ -61,7 +61,6 @@ std::string toString( std::string const& value ) { std::string subs; switch( s[i] ) { case '\r': subs = "\\r"; break; - case '\l': subs = "\\l"; break; case '\n': subs = "\\n"; break; case '\t': subs = "\\t"; break; default: break;