mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[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:
parent
9aa325fd14
commit
4a4bf53222
1 changed files with 7 additions and 0 deletions
|
@ -11,6 +11,13 @@ if(MSVC)
|
|||
add_definitions(-Dvsnprintf=_vsnprintf)
|
||||
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()
|
||||
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
|
|
Loading…
Reference in a new issue