[KERNEL32] Disable some warnings for wine code

This commit is contained in:
Timo Kreuzer 2024-04-25 16:46:08 +03:00
parent bbb3b00398
commit c04377bf03

View file

@ -95,6 +95,12 @@ list(APPEND SOURCE
if(MSVC)
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
set_source_files_properties(wine/res.c PROPERTIES COMPILE_FLAGS /wd4146)
# Disable warning C4267: 'initializing': conversion from 'size_t' to 'DWORD', possible loss of data
set_source_files_properties(winnls/string/locale.c PROPERTIES COMPILE_FLAGS /wd4267)
else()
# Disable warning: 'variable' defined but not used
set_source_files_properties(winnls/string/locale.c PROPERTIES COMPILE_FLAGS -Wno-unused-variable)
endif()
if(ARCH STREQUAL "i386")