mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Add -Wno-global-constructors for Clang
This commit is contained in:
parent
0c5a66b666
commit
070db845f8
@ -78,6 +78,7 @@ if(MSVC) # MSVC or simulating MSVC
|
|||||||
-Wno-shift-sign-overflow # GTest gtest-port.h
|
-Wno-shift-sign-overflow # GTest gtest-port.h
|
||||||
-Wno-undef # GTest
|
-Wno-undef # GTest
|
||||||
-Wno-used-but-marked-unused # GTest EXPECT_DEATH
|
-Wno-used-but-marked-unused # GTest EXPECT_DEATH
|
||||||
|
-Wno-global-constructors
|
||||||
$<$<EQUAL:${GSL_CXX_STANDARD},14>: # no support for [[maybe_unused]]
|
$<$<EQUAL:${GSL_CXX_STANDARD},14>: # no support for [[maybe_unused]]
|
||||||
-Wno-unused-member-function
|
-Wno-unused-member-function
|
||||||
-Wno-unused-variable
|
-Wno-unused-variable
|
||||||
@ -109,6 +110,7 @@ else()
|
|||||||
-Wno-unknown-attributes
|
-Wno-unknown-attributes
|
||||||
-Wno-used-but-marked-unused # GTest EXPECT_DEATH
|
-Wno-used-but-marked-unused # GTest EXPECT_DEATH
|
||||||
-Wno-weak-vtables
|
-Wno-weak-vtables
|
||||||
|
-Wno-global-constructors
|
||||||
$<$<EQUAL:${GSL_CXX_STANDARD},14>: # no support for [[maybe_unused]]
|
$<$<EQUAL:${GSL_CXX_STANDARD},14>: # no support for [[maybe_unused]]
|
||||||
-Wno-unused-member-function
|
-Wno-unused-member-function
|
||||||
-Wno-unused-variable
|
-Wno-unused-variable
|
||||||
@ -212,6 +214,7 @@ if(MSVC) # MSVC or simulating MSVC
|
|||||||
-Wno-c++98-compat-pedantic
|
-Wno-c++98-compat-pedantic
|
||||||
-Wno-missing-prototypes
|
-Wno-missing-prototypes
|
||||||
-Wno-unknown-attributes
|
-Wno-unknown-attributes
|
||||||
|
-Wno-global-constructors
|
||||||
>
|
>
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
@ -234,6 +237,7 @@ else()
|
|||||||
-Wno-missing-prototypes
|
-Wno-missing-prototypes
|
||||||
-Wno-unknown-attributes
|
-Wno-unknown-attributes
|
||||||
-Wno-weak-vtables
|
-Wno-weak-vtables
|
||||||
|
-Wno-global-constructors
|
||||||
>
|
>
|
||||||
$<$<CXX_COMPILER_ID:GNU>:
|
$<$<CXX_COMPILER_ID:GNU>:
|
||||||
-Wdouble-promotion # float implicit to double
|
-Wdouble-promotion # float implicit to double
|
||||||
|
Loading…
Reference in New Issue
Block a user