commit 27eb415d250ea963c07e22da6c28c5458a36a749
Author: Richard Heck <[email protected]>
Date: Fri Dec 15 23:25:51 2017 -0500
Probably fix #10850 compiler warnings.
---
src/support/FileName.cpp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp
index 189c564..f9a6f7e 100644
--- a/src/support/FileName.cpp
+++ b/src/support/FileName.cpp
@@ -283,6 +283,9 @@ bool FileName::changePermission(unsigned long int mode)
const
<< mode << ".");
return false;
}
+#else
+ // squash warning
+ (void) mode;
#endif
return true;
}
@@ -683,7 +686,9 @@ static int mymkdir(char const * pathname, unsigned long int
mode)
#else
# error "Don't know how to create a directory on this system."
#endif
-
+ // squash warnings
+ (void) mode;
+ (void) pathname;
}
@@ -692,6 +697,7 @@ bool FileName::createDirectory(int permission) const
LASSERT(!empty(), return false);
#ifdef Q_OS_WIN32
// FIXME: "Permissions of created directories are ignored on this
system."
+ (void) permission;
return createPath();
#else
return mymkdir(toFilesystemEncoding().c_str(), permission) == 0;