# HG changeset patch # User Sebastien Jodogne # Date 1477560943 -7200 # Node ID d10ff48e47ff902a057db65cd5fb13a8e09597d7 # Parent 482ff9a4506f04f9dd4f09f53c35527b02812cae fix warnings in msvc diff -r 482ff9a4506f -r d10ff48e47ff Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Oct 27 11:25:09 2016 +0200 +++ b/Framework/Orthanc/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Oct 27 11:35:43 2016 +0200 @@ -526,11 +526,11 @@ return true; case Json::intValue: - target = configuration_[key].asInt(); + target = static_cast(configuration_[key].asInt()); return true; case Json::uintValue: - target = configuration_[key].asUInt(); + target = static_cast(configuration_[key].asUInt()); return true; default: diff -r 482ff9a4506f -r d10ff48e47ff ViewerPlugin/CMakeLists.txt --- a/ViewerPlugin/CMakeLists.txt Thu Oct 27 11:25:09 2016 +0200 +++ b/ViewerPlugin/CMakeLists.txt Thu Oct 27 11:35:43 2016 +0200 @@ -91,8 +91,6 @@ link_libraries(rt) elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") - SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lws2_32") - execute_process( COMMAND ${PYTHON_EXECUTABLE} ${ORTHANC_ROOT}/Resources/WindowsResources.py