mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Suppress -Wexit-time-destructors
This commit is contained in:
		@@ -7,8 +7,17 @@
 | 
			
		||||
// SPDX-License-Identifier: BSL-1.0
 | 
			
		||||
#include <catch2/internal/catch_global_lock.hpp>
 | 
			
		||||
 | 
			
		||||
#if defined(__clang__)
 | 
			
		||||
#    pragma clang diagnostic push
 | 
			
		||||
#    pragma clang diagnostic ignored "-Wexit-time-destructors"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
namespace Catch {
 | 
			
		||||
 | 
			
		||||
    std::recursive_mutex global_lock;
 | 
			
		||||
 | 
			
		||||
} // namespace Catch
 | 
			
		||||
 | 
			
		||||
#if defined(__clang__)
 | 
			
		||||
#    pragma clang diagnostic pop
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user