From 8b1f62bb7ef156495835b97385213f9d48324daa Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Sat, 2 Mar 2013 14:49:39 +0100 Subject: [PATCH] Fix -Wunused-private-field warnings * catch_console_colour private field 'm_impl' only used on Windows when no ANSI * catch_reporter_junit private field 'm_currentTestSuccess' is not used at all --- include/internal/catch_console_colour.hpp | 2 ++ include/reporters/catch_reporter_junit.hpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/internal/catch_console_colour.hpp b/include/internal/catch_console_colour.hpp index 6cb0b828..6fad8335 100644 --- a/include/internal/catch_console_colour.hpp +++ b/include/internal/catch_console_colour.hpp @@ -35,8 +35,10 @@ namespace Catch { void set( Colours colour ); ~TextColour(); +#if !defined( CATCH_CONFIG_USE_ANSI_COLOUR_CODES ) && defined ( CATCH_PLATFORM_WINDOWS ) private: ConsoleColourImpl* m_impl; +#endif }; } // end namespace Catch diff --git a/include/reporters/catch_reporter_junit.hpp b/include/reporters/catch_reporter_junit.hpp index 21c4ccfb..ca091670 100644 --- a/include/reporters/catch_reporter_junit.hpp +++ b/include/reporters/catch_reporter_junit.hpp @@ -234,7 +234,6 @@ namespace Catch { private: ReporterConfig m_config; - bool m_currentTestSuccess; Stats m_testSuiteStats; Stats* m_currentStats;