diff --git a/Test/MiscTests.cpp b/Test/MiscTests.cpp index 1639a9ab..35d680a3 100644 --- a/Test/MiscTests.cpp +++ b/Test/MiscTests.cpp @@ -36,7 +36,7 @@ TEST_CASE( "succeeding/Misc/Sections/nested", "nested SECTION tests" ) SECTION( "s1", "doesn't equal" ) { - REQUIRE( a != b ) "a should not equal b"; + REQUIRE( a != b ); REQUIRE( b != a ); SECTION( "s2", "not equal" ) diff --git a/catch_reporter_junit.hpp b/catch_reporter_junit.hpp index 502c05fe..1d9f39ca 100644 --- a/catch_reporter_junit.hpp +++ b/catch_reporter_junit.hpp @@ -101,11 +101,11 @@ namespace Catch m_currentStats = &m_testSuiteStats; } - virtual void StartSection( const std::string& sectionName, const std::string description ) + virtual void StartSection( const std::string& /*sectionName*/, const std::string /*description*/ ) { } - virtual void EndSection( const std::string& sectionName, std::size_t succeeded, std::size_t failed ) + virtual void EndSection( const std::string& /*sectionName*/, std::size_t /*succeeded*/, std::size_t /*failed*/ ) { } diff --git a/catch_reporter_xml.hpp b/catch_reporter_xml.hpp index 17704c26..31ec426f 100644 --- a/catch_reporter_xml.hpp +++ b/catch_reporter_xml.hpp @@ -58,7 +58,7 @@ namespace Catch } /////////////////////////////////////////////////////////////////////////// - virtual void EndGroup( const std::string& groupName, std::size_t succeeded, std::size_t failed ) + virtual void EndGroup( const std::string& /*groupName*/, std::size_t succeeded, std::size_t failed ) { m_xml.scopedElement( "OverallResults" ) .writeAttribute( "successes", succeeded ) @@ -75,7 +75,7 @@ namespace Catch } /////////////////////////////////////////////////////////////////////////// - virtual void EndSection( const std::string& sectionName, std::size_t succeeded, std::size_t failed ) + virtual void EndSection( const std::string& /*sectionName*/, std::size_t succeeded, std::size_t failed ) { m_xml.scopedElement( "OverallResults" ) .writeAttribute( "successes", succeeded ) @@ -138,7 +138,7 @@ namespace Catch } /////////////////////////////////////////////////////////////////////////// - virtual void EndTestCase( const Catch::TestCaseInfo&, const std::string& stdOut, const std::string& stdErr ) + virtual void EndTestCase( const Catch::TestCaseInfo&, const std::string& /*stdOut*/, const std::string& /*stdErr*/ ) { m_xml.scopedElement( "OverallResult" ).writeAttribute( "success", m_currentTestSuccess ); m_xml.endElement(); diff --git a/internal/catch_capture.hpp b/internal/catch_capture.hpp index b81e03c6..94722a68 100644 --- a/internal/catch_capture.hpp +++ b/internal/catch_capture.hpp @@ -67,7 +67,7 @@ namespace Detail template struct StringMaker { - static std::string apply( const T& value ) + static std::string apply( const T& ) { return "{?}"; }