]> git.lyx.org Git - features.git/commitdiff
Probably fix #10850 compiler warnings.
authorRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 04:25:51 +0000 (23:25 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 04:25:51 +0000 (23:25 -0500)
src/support/FileName.cpp

index 189c5645a459ac0ae4d9d72e46188a2ed482a2df..f9a6f7eaf1c5d4f3f18c7681c358621ac7bd2009 100644 (file)
@@ -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;