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

Fixed some warnings

Commit
73e1bc20bc66df3d0ffbef610ce1e8a472e8e1b5
Author
Phil Nash ·
Parents
4f19705e0925

Files · Download .tar.gz

Changes

 projects/SelfTest/TrickyTests.cpp                        |  2 +-
 projects/SelfTest/catch_self_test.cpp                    |  2 +-
 projects/SelfTest/catch_self_test.hpp                    | 16 ++++++++--------
 .../CatchSelfTest.xcodeproj/project.pbxproj              |  8 ++++++++
 4 files changed, 18 insertions(+), 10 deletions(-)

diff --git a/projects/SelfTest/TrickyTests.cpp b/projects/SelfTest/TrickyTests.cpp
index bcfe9b03..ee7d236e 100644
--- a/projects/SelfTest/TrickyTests.cpp
+++ b/projects/SelfTest/TrickyTests.cpp
@@ -292,4 +292,4 @@ TEST_CASE( "./sameName", "Tests with the same name are not allowed" )
 {
     
 }
-*/
\ No newline at end of file
+*/
diff --git a/projects/SelfTest/catch_self_test.cpp b/projects/SelfTest/catch_self_test.cpp
index e558cf87..951cda4b 100644
--- a/projects/SelfTest/catch_self_test.cpp
+++ b/projects/SelfTest/catch_self_test.cpp
@@ -15,7 +15,7 @@
 
 namespace Catch{
     
-    std::size_t EmbeddedRunner::runMatching( const std::string& rawTestSpec, const std::string& reporter ) {
+    std::size_t EmbeddedRunner::runMatching( const std::string& rawTestSpec, const std::string& ) {
         std::ostringstream oss;
         Config config;
         config.setStreamBuf( oss.rdbuf() );
diff --git a/projects/SelfTest/catch_self_test.hpp b/projects/SelfTest/catch_self_test.hpp
index 41b0c9fa..ac0a4d4d 100644
--- a/projects/SelfTest/catch_self_test.hpp
+++ b/projects/SelfTest/catch_self_test.hpp
@@ -27,7 +27,7 @@ namespace Catch {
             addRecorder( recordSections );
         }
                 
-        MockReporter( const IReporterConfig& config ) {
+        MockReporter( const IReporterConfig& ) {
             recordAll();
         }
         
@@ -55,21 +55,21 @@ namespace Catch {
         
         virtual void StartTesting() {}
         
-        virtual void EndTesting( const Totals& totals ) {}
+        virtual void EndTesting( const Totals& ) {}
         
         virtual void StartGroup( const std::string& groupName ) {
             openLabel( recordGroups, groupName );
         }
         
-        virtual void EndGroup( const std::string& groupName, const Totals& totals ) {
+        virtual void EndGroup( const std::string& groupName, const Totals& ) {
             closeLabel( recordGroups, groupName );
         }
         
-        virtual void StartSection( const std::string& sectionName, const std::string& description ) {
+        virtual void StartSection( const std::string& sectionName, const std::string& ) {
             openLabel( recordSections, sectionName );
         }
         
-        virtual void EndSection( const std::string& sectionName, const Counts& assertions ) {
+        virtual void EndSection( const std::string& sectionName, const Counts& ) {
             closeLabel( recordSections, sectionName );
         }
         
@@ -78,9 +78,9 @@ namespace Catch {
         }
         
         virtual void EndTestCase(   const TestCaseInfo& testInfo, 
-                                    const Totals& totals,
-                                    const std::string& stdOut, 
-                                    const std::string& stdErr ) {
+                                    const Totals&,
+                                    const std::string&, 
+                                    const std::string& ) {
             closeLabel( recordTestCases, testInfo.getName()  );
         }
         
diff --git a/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj b/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj
index c2321826..44105514 100644
--- a/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj
+++ b/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj
@@ -376,9 +376,13 @@
 				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
 				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
 				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
 				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
+				GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
+				GCC_WARN_PEDANTIC = YES;
 				GCC_WARN_SHADOW = YES;
+				GCC_WARN_UNUSED_PARAMETER = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
 				MACOSX_DEPLOYMENT_TARGET = 10.7;
 				ONLY_ACTIVE_ARCH = YES;
@@ -401,9 +405,13 @@
 				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
 				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
 				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
 				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
 				GCC_WARN_ABOUT_RETURN_TYPE = YES;
+				GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
+				GCC_WARN_PEDANTIC = YES;
 				GCC_WARN_SHADOW = YES;
+				GCC_WARN_UNUSED_PARAMETER = YES;
 				GCC_WARN_UNUSED_VARIABLE = YES;
 				MACOSX_DEPLOYMENT_TARGET = 10.7;
 				SDKROOT = macosx;