[WINMM] Silence MSVC warning about unary minus operator

mci.c(1012): warning C4146: unary minus operator applied to unsigned type, result still unsigned
This commit is contained in:
Timo Kreuzer 2025-04-13 11:44:33 +03:00
parent edc8eb63c4
commit 2d57c60148

View file

@ -24,8 +24,9 @@ add_library(winmm MODULE
if(MSVC)
# Disable warning C4090: 'function': different 'const' qualifiers
# Disable warning C4146: unary minus operator applied to unsigned type, result still unsigned
# Disable warning C4312: 'type cast': conversion from 'DWORD' to 'HTASK' of greater size
target_compile_options(winmm PRIVATE /wd4090 /wd4312)
target_compile_options(winmm PRIVATE /wd4090 /wd4146 /wd4312)
endif()
set_module_type(winmm win32dll)