mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-30 19:57:10 +01:00 
			
		
		
		
	Fix C4601 and enable C4602 warning for internal builds
Related to #1072
This commit is contained in:
		| @@ -17,6 +17,14 @@ | ||||
| #include <cfloat> | ||||
| #include <cstdio> | ||||
|  | ||||
| #if defined(_MSC_VER) | ||||
| #pragma warning(push) | ||||
| #pragma warning(disable:4061) // Not all labels are EXPLICITLY handled in switch | ||||
|                               // Note that 4062 (not all labels are handled | ||||
|                               // and default is missing) is enabled | ||||
| #endif | ||||
|  | ||||
|  | ||||
| namespace Catch { | ||||
|  | ||||
|     namespace { | ||||
| @@ -639,3 +647,7 @@ namespace Catch { | ||||
|     ConsoleReporter::~ConsoleReporter() {} | ||||
|  | ||||
| } // end namespace Catch | ||||
|  | ||||
| #if defined(_MSC_VER) | ||||
| #pragma warning(pop) | ||||
| #endif | ||||
|   | ||||
| @@ -13,6 +13,13 @@ | ||||
| #include "internal/catch_xmlwriter.h" | ||||
| #include "../internal/catch_timer.h" | ||||
|  | ||||
| #if defined(_MSC_VER) | ||||
| #pragma warning(push) | ||||
| #pragma warning(disable:4061) // Not all labels are EXPLICITLY handled in switch | ||||
|                               // Note that 4062 (not all labels are handled | ||||
|                               // and default is missing) is enabled | ||||
| #endif | ||||
|  | ||||
| namespace Catch { | ||||
|     class XmlReporter : public StreamingReporterBase<XmlReporter> { | ||||
|     public: | ||||
| @@ -223,3 +230,7 @@ namespace Catch { | ||||
|     CATCH_REGISTER_REPORTER( "xml", XmlReporter ) | ||||
|  | ||||
| } // end namespace Catch | ||||
|  | ||||
| #if defined(_MSC_VER) | ||||
| #pragma warning(pop) | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský