[0.4.11][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:
Joachim Henze 2022-03-28 17:49:54 +02:00
parent e95a2605d4
commit da1574418a

View file

@ -1,6 +1,20 @@
add_definitions(-D__ROS_LONG64__)
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)
add_subdirectory(advpack)
add_subdirectory(amstream)