mirror of
https://github.com/microsoft/GSL.git
synced 2025-08-03 04:34:28 +02:00
Tweak
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user