From 24462cece440fa45e35c0938e00a3ec4d76932df Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Wed, 14 Feb 2018 19:13:08 +0000 Subject: [PATCH] Disable noisy warning in old compiler (VS2015) --- cmake/os/Windows.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake index 2dcdecdd72f..c6cbfca2346 100644 --- a/cmake/os/Windows.cmake +++ b/cmake/os/Windows.cmake @@ -155,7 +155,11 @@ IF(MSVC) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX") ENDIF() - + IF(MSVC_VERSION LESS 1910) + # Noisy warning C4800: 'type': forcing value to bool 'true' or 'false' (performance warning), + # removed in VS2017 + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4800") + ENDIF() ENDIF() # Always link with socket library