This commit is contained in:
Dmitry Kobets 2021-11-30 13:51:58 -08:00
parent c9c27e39d5
commit 192a2b505c

View File

@ -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