From 3c0f5c7e5978215be7efe606116be64e74ec3f91 Mon Sep 17 00:00:00 2001 From: Bent Hillerkus Date: Fri, 13 Mar 2026 16:05:46 +0100 Subject: [PATCH] chore: translate comment for ignoring truncating casts warning --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c5be1d49f..008f9e9563 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -493,7 +493,8 @@ if (APPLE) endif () if(MSVC) -# 添加编译选项,忽略警告 C4305 (格式转换截断) +# Ignore truncating casts in initializers & constructors +# https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4305 add_compile_options(/wd4305) endif()