mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Fix 'defined but not used' warning
The warning occurred when !CATCH_CONFIG_WINDOWS_SEH && !CATCH_CONFIG_POSIX_SIGNALS.
This commit is contained in:
		 Tomas Zeman
					Tomas Zeman
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							05cd05743a
						
					
				
				
					commit
					865d5f59b4
				
			| @@ -17,6 +17,8 @@ | ||||
| #    pragma GCC diagnostic ignored "-Wmissing-field-initializers" | ||||
| #endif | ||||
|  | ||||
| #if defined( CATCH_CONFIG_WINDOWS_SEH ) || defined( CATCH_CONFIG_POSIX_SIGNALS ) | ||||
|  | ||||
| namespace { | ||||
|     // Report the error condition | ||||
|     void reportFatal( char const * const message ) { | ||||
| @@ -24,6 +26,8 @@ namespace { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #endif // signals/SEH handling | ||||
|  | ||||
| #if defined( CATCH_CONFIG_WINDOWS_SEH ) | ||||
|  | ||||
| namespace Catch { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user