[CMAKE] winetests/: Move '/wd4334' to 3 sub-modules only
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Fri, 5 Oct 2018 16:49:17 +0000 (18:49 +0200)
committerJérôme Gardou <zefklop@users.noreply.github.com>
Wed, 12 May 2021 10:50:48 +0000 (12:50 +0200)
Addendum to 42d2d5e.

modules/rostests/winetests/CMakeLists.txt
modules/rostests/winetests/comctl32/CMakeLists.txt
modules/rostests/winetests/gdi32/CMakeLists.txt
modules/rostests/winetests/ntdll/CMakeLists.txt

index e7b6932..580e81e 100644 (file)
@@ -11,7 +11,7 @@ if(MSVC)
     if(ARCH STREQUAL "amd64")
         add_compile_options(
             /wd4312 # C4312: 'type cast': conversion from 'unsigned int' to 'char *' of greater size
     if(ARCH STREQUAL "amd64")
         add_compile_options(
             /wd4312 # C4312: 'type cast': conversion from 'unsigned int' to 'char *' of greater size
-            /wd4334) # C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
+            )
     endif()
 endif()
 
     endif()
 endif()
 
index 604e050..9fa7c45 100644 (file)
@@ -42,6 +42,11 @@ add_executable(comctl32_winetest
     ${PCH_SKIP_SOURCE}
     rsrc.rc)
 
     ${PCH_SKIP_SOURCE}
     rsrc.rc)
 
+if(MSVC AND ARCH STREQUAL "amd64")
+    # warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
+    target_compile_options(comctl32_winetest PRIVATE /wd4334)
+endif()
+
 target_compile_options(comctl32_winetest PRIVATE $<$<NOT:$<C_COMPILER_ID:MSVC>>:-Wno-format>)
 
 set_module_type(comctl32_winetest win32cui)
 target_compile_options(comctl32_winetest PRIVATE $<$<NOT:$<C_COMPILER_ID:MSVC>>:-Wno-format>)
 
 set_module_type(comctl32_winetest win32cui)
index 8931713..bd8ec44 100644 (file)
@@ -25,6 +25,11 @@ add_executable(gdi32_winetest
     ${PCH_SKIP_SOURCE}
     resource.rc)
 
     ${PCH_SKIP_SOURCE}
     resource.rc)
 
+if(MSVC AND ARCH STREQUAL "amd64")
+    # warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
+    target_compile_options(gdi32_winetest PRIVATE /wd4334)
+endif()
+
 set_module_type(gdi32_winetest win32cui)
 add_importlibs(gdi32_winetest gdi32 user32 advapi32 msvcrt kernel32)
 
 set_module_type(gdi32_winetest win32cui)
 add_importlibs(gdi32_winetest gdi32 user32 advapi32 msvcrt kernel32)
 
index 3386316..f7b435e 100644 (file)
@@ -38,6 +38,11 @@ add_executable(ntdll_winetest
 
 target_link_libraries(ntdll_winetest pseh)
 
 
 target_link_libraries(ntdll_winetest pseh)
 
+if(MSVC AND ARCH STREQUAL "amd64")
+    # warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
+    target_compile_options(ntdll_winetest PRIVATE /wd4334)
+endif()
+
 if(USE_CLANG_CL OR (NOT MSVC))
     target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
 endif()
 if(USE_CLANG_CL OR (NOT MSVC))
     target_compile_options(ntdll_winetest PRIVATE "-Wno-format")
 endif()