mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[0.4.13][WINETESTS] Mute many MSVC2010SP1 dbg warnings CORE-18104
Mutes too many to list them all here, but the motivation to pick that part was:
can be observed with MSVC 2010SP1 (16.0.40219.1) x86 target in dbg configuation:
C:\047rls\reactos\modules\rostests\winetests\rpcrt4\server.c(910) : warning C4305: 'function' : truncation from 'double' to 'float'
C:\047rls\reactos\modules\rostests\winetests\rpcrt4\server.c(910) : warning C4305: 'function' : truncation from 'double' to 'float'
Timo thought most likely that muting is okay here, to keep the diff to upstream low in the tests.
Partial pick from 0.4.14-dev-847-g 42d2d5ec9c
This commit is contained in:
parent
a59fd23585
commit
db0ba4b0a6
1 changed files with 12 additions and 2 deletions
|
@ -1,8 +1,18 @@
|
|||
|
||||
add_definitions(-D__ROS_LONG64__)
|
||||
|
||||
if (MSVC AND ARCH STREQUAL "amd64")
|
||||
add_compile_flags("/wd4312")
|
||||
if (MSVC)
|
||||
add_compile_flags("/wd4090") # C4090: 'function': different 'const' qualifiers
|
||||
add_compile_flags("/wd4133") # C4133: 'function': incompatible types - from '<enum> *' to 'UINT *'
|
||||
add_compile_flags("/wd4146") # C4146: unary minus operator applied to unsigned type, result still unsigned
|
||||
add_compile_flags("/wd4189") # C4189: 'x': local variable is initialized but not referenced
|
||||
add_compile_flags("/wd4267") # C4267: '=': conversion from 'size_t' to 'int', possible loss of data
|
||||
add_compile_flags("/wd4305") # C4305: '=': truncation from 'double' to 'FLOAT'
|
||||
if (ARCH STREQUAL "amd64")
|
||||
add_compile_flags("/wd4101") # C4101: 'x': unreferenced local variable
|
||||
add_compile_flags("/wd4312") # C4312: 'type cast': conversion from 'unsigned int' to 'char *' of greater size
|
||||
add_compile_flags("/wd4334") # C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_subdirectory(advapi32)
|
||||
|
|
Loading…
Reference in a new issue