mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Suppressed a load of warnings
This commit is contained in:
		| @@ -8,6 +8,10 @@ | ||||
|  | ||||
| #include "catch.hpp" | ||||
|  | ||||
| #ifdef __clang__ | ||||
| #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" | ||||
| #endif | ||||
|  | ||||
| TEST_CASE( "INFO and WARN do not abort tests", "[messages][.]" ) | ||||
| { | ||||
|     INFO( "this is a " << "message" );    // This should output the message if a failure occurs | ||||
|   | ||||
| @@ -10,6 +10,10 @@ | ||||
|  | ||||
| #include <iostream> | ||||
|  | ||||
| #ifdef __clang__ | ||||
| #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" | ||||
| #endif | ||||
|  | ||||
| TEST_CASE( "random SECTION tests", "[.][sections][failing]" ) | ||||
| { | ||||
|     int a = 1; | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_common.h" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_console_colour.hpp" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_interfaces_capture.h" | ||||
|   | ||||
| @@ -1 +1,2 @@ | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_interfaces_config.h" | ||||
|   | ||||
| @@ -1 +1,2 @@ | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_interfaces_reporter.h" | ||||
|   | ||||
| @@ -1 +1,2 @@ | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_interfaces_testcase.h" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_message.h" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_option.hpp" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_ptr.hpp" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_streambuf.h" | ||||
|   | ||||
| @@ -1,2 +1,3 @@ | ||||
| // This file is only here to verify (to the extent possible) the self sufficiency of the header | ||||
| #include "catch_suppress_warnings.h" | ||||
| #include "catch_test_spec.hpp" | ||||
|   | ||||
| @@ -12,6 +12,11 @@ | ||||
|  | ||||
| #include "catch.hpp" | ||||
|  | ||||
| #ifdef __clang__ | ||||
| #pragma clang diagnostic ignored "-Wc++98-compat" | ||||
| #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" | ||||
| #endif | ||||
|  | ||||
| namespace Catch | ||||
| { | ||||
|     template<> | ||||
|   | ||||
| @@ -67,6 +67,8 @@ | ||||
| 		263FD06117AF8DF200988A20 /* catch_timer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = catch_timer.h; sourceTree = "<group>"; }; | ||||
| 		2656C21F1925E5100040DB02 /* catch_test_spec_parser.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = catch_test_spec_parser.hpp; sourceTree = "<group>"; }; | ||||
| 		2656C2201925E7330040DB02 /* catch_test_spec.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = catch_test_spec.cpp; path = ../../../SelfTest/SurrogateCpps/catch_test_spec.cpp; sourceTree = "<group>"; }; | ||||
| 		2656C226192A77EF0040DB02 /* catch_suppress_warnings.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = catch_suppress_warnings.h; sourceTree = "<group>"; }; | ||||
| 		2656C227192A78410040DB02 /* catch_reenable_warnings.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = catch_reenable_warnings.h; sourceTree = "<group>"; }; | ||||
| 		266B06B616F3A60A004ED264 /* VariadicMacrosTests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = VariadicMacrosTests.cpp; path = ../../../SelfTest/VariadicMacrosTests.cpp; sourceTree = "<group>"; }; | ||||
| 		266ECD73170F3C620030D735 /* BDDTests.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = BDDTests.cpp; path = ../../../SelfTest/BDDTests.cpp; sourceTree = "<group>"; }; | ||||
| 		266ECD8C1713614B0030D735 /* catch_legacy_reporter_adapter.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = catch_legacy_reporter_adapter.hpp; sourceTree = "<group>"; }; | ||||
| @@ -440,6 +442,8 @@ | ||||
| 				262E739A1846759000CAC268 /* catch_common.hpp */, | ||||
| 				261488FC184D1DC10041FBEB /* catch_stream.h */, | ||||
| 				268F47B018A93F7800D8C14F /* catch_clara.h */, | ||||
| 				2656C226192A77EF0040DB02 /* catch_suppress_warnings.h */, | ||||
| 				2656C227192A78410040DB02 /* catch_reenable_warnings.h */, | ||||
| 			); | ||||
| 			name = Infrastructure; | ||||
| 			sourceTree = "<group>"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash