From 2d57c6014819e12ec7fbb469011dd14500fdccdd Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 13 Apr 2025 11:44:33 +0300 Subject: [PATCH] [WINMM] Silence MSVC warning about unary minus operator mci.c(1012): warning C4146: unary minus operator applied to unsigned type, result still unsigned --- dll/win32/winmm/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dll/win32/winmm/CMakeLists.txt b/dll/win32/winmm/CMakeLists.txt index 2566277f94d..5605be65dda 100644 --- a/dll/win32/winmm/CMakeLists.txt +++ b/dll/win32/winmm/CMakeLists.txt @@ -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)