From db0ba4b0a61ce16b72b76f76a4a334c08a343e73 Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Mon, 28 Mar 2022 17:48:33 +0200 Subject: [PATCH] [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 42d2d5ec9c76588624412f95114d26f36373959f --- modules/rostests/winetests/CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/rostests/winetests/CMakeLists.txt b/modules/rostests/winetests/CMakeLists.txt index 0e70ccb1cc4..e6afecdb6bb 100644 --- a/modules/rostests/winetests/CMakeLists.txt +++ b/modules/rostests/winetests/CMakeLists.txt @@ -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 ' *' 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)