[0.4.10][WPP] Mute 3 MSVC2010SP1 x86 dbg warnings C4146 CORE-18104

warnings can be observed with MSVC 2010SP1 (16.0.40219.1) x86 target in dbg configuration:
[7441/11751] Building C object sdk\tools\wpp\CMakeFiles\wpp.dir\ppl.yy.c.obj
[7442/11751] Building C object sdk\tools\wpp\CMakeFiles\wpp.dir\ppy.tab.c.obj
ppy.y(402) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
ppy.y(402) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
ppy.y(402) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

partial pick from: 0.4.13-dev-132-g f47f45dbdd

Yes the /wd4244 wasn't really necessary for x86, but only for x64,
but taking it with me as well synced the file to 100%.
This commit is contained in:
Joachim Henze 2022-04-08 00:54:01 +02:00
parent 9aa325fd14
commit 4a4bf53222

View file

@ -11,6 +11,13 @@ if(MSVC)
add_definitions(-Dvsnprintf=_vsnprintf) add_definitions(-Dvsnprintf=_vsnprintf)
endif() endif()
endif() endif()
# Disable warning " unary minus operator applied to unsigned type, result still unsigned"
add_compile_flags("/wd4146")
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
add_compile_flags("/wd4244")
endif() endif()
if(CMAKE_CROSSCOMPILING) if(CMAKE_CROSSCOMPILING)