From bdad733331c1a242a96120e6dcf8dce04cb24905 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 16 Feb 2025 11:53:01 +0100 Subject: [PATCH] build: Document disabled MSVC warnings --- cmake/build_helpers.cmake | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 5c725500a..88f1c4241 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -629,11 +629,12 @@ endmacro() macro(setupCompilerFlags target) if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC") addCommonFlag("/W4" ${target}) - addCommonFlag("/wd4242" ${target}) - addCommonFlag("/wd4244" ${target}) - addCommonFlag("/wd4267" ${target}) - addCommonFlag("/wd4996" ${target}) - addCommonFlag("/wd4127" ${target}) + addCommonFlag("/wd4127" ${target}) # conditional expression is constant + addCommonFlag("/wd4242" ${target}) # 'identifier': conversion from 'type1' to 'type2', possible loss of data + addCommonFlag("/wd4244" ${target}) # 'conversion': conversion from 'type1' to 'type2', possible loss of data + addCommonFlag("/wd4267" ${target}) # 'var': conversion from 'size_t' to 'type', possible loss of data + addCommonFlag("/wd4305" ${target}) # truncation from 'double' to 'float' + addCommonFlag("/wd4996" ${target}) # 'function': was declared deprecated if (IMHEX_STRICT_WARNINGS) addCommonFlag("/WX" ${target})