Suppress some MSVC warnings

master
Piotr Dziwinski 2015-04-27 19:03:17 +02:00
parent d003247120
commit bca9a019ae
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
message(STATUS "Detected MSVC compiler") message(STATUS "Detected MSVC compiler")
set(CXX11_FLAGS "") set(CXX11_FLAGS "")
set(NORMAL_CXX_FLAGS "") set(NORMAL_CXX_FLAGS "/wd\"4244\" /wd\"4309\" /wd\"4800\" /wd\"4996\"") # disable some useless warnings
set(RELEASE_CXX_FLAGS "") set(RELEASE_CXX_FLAGS "")
set(DEBUG_CXX_FLAGS "") set(DEBUG_CXX_FLAGS "")
set(TEST_CXX_FLAGS "") set(TEST_CXX_FLAGS "")

View File

@ -194,7 +194,7 @@ bool CResourceManager::RemoveDirectory(const std::string& directory)
fs::remove_all(path); fs::remove_all(path);
#endif #endif
} }
catch (std::exception & e) catch (std::exception&)
{ {
success = false; success = false;
} }
@ -284,7 +284,7 @@ bool CResourceManager::Move(const std::string& from, const std::string& to)
fs::rename(path_from, path_to); fs::rename(path_from, path_to);
#endif #endif
} }
catch (std::exception & e) catch (std::exception&)
{ {
success = false; success = false;
} }