From 070db845f8b71a6b4f08304e518e4f51e15146da Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Fri, 18 Dec 2020 12:10:36 -0800 Subject: [PATCH] Add -Wno-global-constructors for Clang --- tests/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a4bd7e6..d3e7a5c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -78,6 +78,7 @@ if(MSVC) # MSVC or simulating MSVC -Wno-shift-sign-overflow # GTest gtest-port.h -Wno-undef # GTest -Wno-used-but-marked-unused # GTest EXPECT_DEATH + -Wno-global-constructors $<$: # no support for [[maybe_unused]] -Wno-unused-member-function -Wno-unused-variable @@ -109,6 +110,7 @@ else() -Wno-unknown-attributes -Wno-used-but-marked-unused # GTest EXPECT_DEATH -Wno-weak-vtables + -Wno-global-constructors $<$: # no support for [[maybe_unused]] -Wno-unused-member-function -Wno-unused-variable @@ -212,6 +214,7 @@ if(MSVC) # MSVC or simulating MSVC -Wno-c++98-compat-pedantic -Wno-missing-prototypes -Wno-unknown-attributes + -Wno-global-constructors > ) else() @@ -234,6 +237,7 @@ else() -Wno-missing-prototypes -Wno-unknown-attributes -Wno-weak-vtables + -Wno-global-constructors > $<$: -Wdouble-promotion # float implicit to double