mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-25 09:11:58 -05:00
Tweak
This commit is contained in:
parent
c9c27e39d5
commit
192a2b505c
@ -237,7 +237,9 @@ else()
|
|||||||
-Wextra
|
-Wextra
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
-Wshadow
|
-Wshadow
|
||||||
-Wsign-conversion
|
$<$<NOT:$<AND:$<BOOL:${CMAKE_CXX_STANDARD}>, $<EQUAL:${CMAKE_CXX_STANDARD},20>>>:
|
||||||
|
-Wsign-conversion # happens to trigger on googletest
|
||||||
|
>
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
-Weverything
|
-Weverything
|
||||||
-Wno-c++98-compat
|
-Wno-c++98-compat
|
||||||
@ -245,12 +247,6 @@ else()
|
|||||||
-Wno-missing-prototypes
|
-Wno-missing-prototypes
|
||||||
-Wno-unknown-attributes
|
-Wno-unknown-attributes
|
||||||
-Wno-weak-vtables
|
-Wno-weak-vtables
|
||||||
$<$<BOOL:${CMAKE_CXX_STANDARD}>:
|
|
||||||
$<$<EQUAL:${CMAKE_CXX_STANDARD},20>:
|
|
||||||
-Wzero-as-null-pointer-constant- # Very noisy, minor, and just so
|
|
||||||
-Wsign-conversion- # happens to trigger on googletest
|
|
||||||
>
|
|
||||||
>
|
|
||||||
>
|
>
|
||||||
$<$<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