mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[CMAKE] winetests/: Move '/wd4101' to kernel32/ only
Also add matching remove_target_compile_option().
Addendum to 42d2d5e
.
This commit is contained in:
parent
9930eeca76
commit
03e824641e
2 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,6 @@ if(MSVC)
|
|||
/wd4305) # C4305: '=': truncation from 'double' to 'FLOAT'
|
||||
if(ARCH STREQUAL "amd64")
|
||||
add_compile_options(
|
||||
/wd4101 # C4101: 'x': unreferenced local variable
|
||||
/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()
|
||||
|
|
|
@ -48,6 +48,12 @@ add_executable(kernel32_winetest
|
|||
if(MSVC)
|
||||
# Disable warning C4477 (printf format warnings)
|
||||
remove_target_compile_option(kernel32_winetest "/we4477")
|
||||
|
||||
if(ARCH STREQUAL "amd64")
|
||||
# error C4101: 'is_wow64': unreferenced local variable
|
||||
remove_target_compile_option(kernel32_winetest "/we4101")
|
||||
target_compile_options(kernel32_winetest PRIVATE /wd4101)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(USE_CLANG_CL OR (NOT MSVC))
|
||||
|
|
Loading…
Reference in a new issue