Fix Visual Studio 2017 warnings

This commit is contained in:
Jamie Seward 2017-10-16 23:23:55 -07:00
parent af99090742
commit 917d9d8bc3
4 changed files with 16 additions and 4 deletions

View file

@ -75,8 +75,11 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
endif()
# Disable warning C4389: '==': signed/unsigned mismatch
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4389")
# warning C4389: '==': signed/unsigned mismatch
# warning C4309: 'static_cast': truncation of constant value
# warning C4566: character represented by universal-character-name '\uFF01' cannot be represented in the current code page (1252)
# warning C4996: 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer>::operator <<': was declared deprecated
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4389 /wd4309 /wd4566 /wd4996")
endif()
#############################################################################