From 9d8ea85398669b9b7d548862dc4ecacdcd9cb61f Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 21 Apr 2024 16:27:47 +0300 Subject: [PATCH] [RTL] Disable an MSVC warning in wine source --- sdk/lib/rtl/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sdk/lib/rtl/CMakeLists.txt b/sdk/lib/rtl/CMakeLists.txt index 8550fe9fb8e..28321a868e9 100644 --- a/sdk/lib/rtl/CMakeLists.txt +++ b/sdk/lib/rtl/CMakeLists.txt @@ -10,10 +10,21 @@ if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang") add_compile_options(-Wunused-result) endif() +list(APPEND RTL_WINE_SOURCE + actctx.c + timerqueue.c + wait.c +) + +if(MSVC) + # Silence warning C4267: 'initializing': conversion from 'size_t' to 'const int', possible loss of data + set_source_files_properties(${RTL_WINE_SOURCE} PROPERTIES COMPILE_FLAGS /wd4267) +endif() + list(APPEND SOURCE + ${RTL_WINE_SOURCE} access.c acl.c - actctx.c appverifier.c assert.c atom.c @@ -64,14 +75,12 @@ list(APPEND SOURCE sysvol.c thread.c time.c - timerqueue.c timezone.c trace.c unicode.c unicodeprefix.c vectoreh.c version.c - wait.c workitem.c rtl.h)