mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +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:
		
				
					committed by
					
						
						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