From cf32f4cdb3a46cf9fa4c1a4ce0b0d8d324026e56 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 28 Mar 2022 23:08:10 +0300 Subject: [PATCH] mdbx-cmake: removing `/W3` when adding `/W4` to avoid stupid MSVC warnings. --- cmake/compiler.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 22ed4024..e1a29723 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -658,8 +658,8 @@ macro(setup_compile_flags) if(NOT MSVC_VERSION LESS 1910) add_compile_flags("CXX" "/Zc:__cplusplus") endif() - add_compile_flags("C;CXX" "/W4") - add_compile_flags("C;CXX" "/utf-8") + remove_compile_flag("C;CXX" "/W3") + add_compile_flags("C;CXX" "/W4 /utf-8") else() if(CC_HAS_WALL) add_compile_flags("C;CXX" "-Wall")