Fix MSVC C++ warnings

This commit is contained in:
Eidolon 2023-12-14 23:25:34 -06:00
parent 1db9898c42
commit 22809e928b

View file

@ -428,6 +428,7 @@ target_compile_options(SRB2SDL2 PRIVATE
-Wno-trigraphs -Wno-trigraphs
-W # Was controlled by RELAXWARNINGS -W # Was controlled by RELAXWARNINGS
-pedantic -pedantic
-Wpedantic
-Wfloat-equal -Wfloat-equal
-Wundef -Wundef
-Wpointer-arith -Wpointer-arith
@ -527,7 +528,7 @@ target_compile_options(SRB2SDL2 PRIVATE
> >
# C++, MSVC # C++, MSVC
$<$<AND:$<COMPILE_LANGUAGE:C>,$<C_COMPILER_ID:MSVC>>: $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<C_COMPILER_ID:MSVC>>:
/Wv:19.20.27004.0 /Wv:19.20.27004.0
> >