Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Cleaned up some more warnings

Commit
9a79ee7958f15fb02ba69a401e928c06215003f4
Author
Phil Nash ·
Parents
3000f6a3b134

Files · Download .tar.gz

Changes

 Test/MiscTests.cpp         | 2 +-
 catch_reporter_junit.hpp   | 4 ++--
 catch_reporter_xml.hpp     | 6 +++---
 internal/catch_capture.hpp | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

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<typename T>
     struct StringMaker<T, false>
     {
-        static std::string apply( const T& value )
+        static std::string apply( const T& )
         {
             return "{?}";
         }