projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e01afa
)
[CMAKE] winetests/: Move '/wd4334' to 3 sub-modules only
author
Serge Gautherie
<reactos-git_serge_171003@gautherie.fr>
Fri, 5 Oct 2018 16:49:17 +0000
(18:49 +0200)
committer
Jé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
patch
|
blob
|
history
modules/rostests/winetests/comctl32/CMakeLists.txt
patch
|
blob
|
history
modules/rostests/winetests/gdi32/CMakeLists.txt
patch
|
blob
|
history
modules/rostests/winetests/ntdll/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/modules/rostests/winetests/CMakeLists.txt
b/modules/rostests/winetests/CMakeLists.txt
index
e7b6932
..
580e81e
100644
(file)
--- a/
modules/rostests/winetests/CMakeLists.txt
+++ b/
modules/rostests/winetests/CMakeLists.txt
@@
-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()
diff --git
a/modules/rostests/winetests/comctl32/CMakeLists.txt
b/modules/rostests/winetests/comctl32/CMakeLists.txt
index
604e050
..
9fa7c45
100644
(file)
--- a/
modules/rostests/winetests/comctl32/CMakeLists.txt
+++ b/
modules/rostests/winetests/comctl32/CMakeLists.txt
@@
-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)
diff --git
a/modules/rostests/winetests/gdi32/CMakeLists.txt
b/modules/rostests/winetests/gdi32/CMakeLists.txt
index
8931713
..
bd8ec44
100644
(file)
--- a/
modules/rostests/winetests/gdi32/CMakeLists.txt
+++ b/
modules/rostests/winetests/gdi32/CMakeLists.txt
@@
-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)
diff --git
a/modules/rostests/winetests/ntdll/CMakeLists.txt
b/modules/rostests/winetests/ntdll/CMakeLists.txt
index
3386316
..
f7b435e
100644
(file)
--- a/
modules/rostests/winetests/ntdll/CMakeLists.txt
+++ b/
modules/rostests/winetests/ntdll/CMakeLists.txt
@@
-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()