mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	Handle -Wglobal-constructors too
This commit is contained in:
		@@ -6,11 +6,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// SPDX-License-Identifier: BSL-1.0
 | 
					// SPDX-License-Identifier: BSL-1.0
 | 
				
			||||||
#include <catch2/internal/catch_global_lock.hpp>
 | 
					#include <catch2/internal/catch_global_lock.hpp>
 | 
				
			||||||
 | 
					#include <catch2/internal/catch_compiler_capabilities.hpp>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__clang__)
 | 
					CATCH_INTERNAL_START_WARNINGS_SUPPRESSION
 | 
				
			||||||
#    pragma clang diagnostic push
 | 
					CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS
 | 
				
			||||||
#    pragma clang diagnostic ignored "-Wexit-time-destructors"
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Catch {
 | 
					namespace Catch {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -18,6 +17,4 @@ namespace Catch {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} // namespace Catch
 | 
					} // namespace Catch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__clang__)
 | 
					CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION
 | 
				
			||||||
#    pragma clang diagnostic pop
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user