Source: Fix various compiler warnings in Visual Studio 2017

This commit is contained in:
Bruno Manganelli
2018-12-24 12:11:26 +00:00
committed by Brad King
parent 70e245f19e
commit 5bcfe98bd5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ bool cmWriteFileCommand::InitialPass(std::vector<std::string> const& args,
// Set permissions to writable
if (cmSystemTools::GetPermissions(fileName.c_str(), mode)) {
#if defined(_MSC_VER) || defined(__MINGW32__)
writable = mode & S_IWRITE;
writable = (mode & S_IWRITE) != 0;
mode_t newMode = mode | S_IWRITE;
#else
writable = mode & S_IWUSR;