Suppress some MSVC warnings
parent
d003247120
commit
bca9a019ae
|
@ -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 "")
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue