mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[CMAKE] winetests/: Move '/wd4334' to 3 sub-modules only
Addendum to 42d2d5e
.
This commit is contained in:
parent
1e01afab99
commit
eba00d1b5e
4 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
/wd4334) # C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
@ -42,6 +42,11 @@ add_executable(comctl32_winetest
|
|||
${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)
|
||||
|
|
|
@ -25,6 +25,11 @@ add_executable(gdi32_winetest
|
|||
${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)
|
||||
|
||||
|
|
|
@ -38,6 +38,11 @@ add_executable(ntdll_winetest
|
|||
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue