Skip to content

Commit

Permalink
Disable noisy warning in old compiler (VS2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Feb 14, 2018
1 parent ac8e3c8 commit 24462ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/os/Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24462ce

Please sign in to comment.