]> git.lyx.org Git - features.git/commitdiff
Fixup 27eb415d: do not define mymkdir() when it is not used.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Jan 2018 11:22:28 +0000 (12:22 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Jan 2018 11:24:58 +0000 (12:24 +0100)
Pleases coverity.

src/support/FileName.cpp

index f9a6f7eaf1c5d4f3f18c7681c358621ac7bd2009..219a9e5fd8bc3831c6ea3e379b91b0b827d2cfbe 100644 (file)
@@ -664,6 +664,7 @@ bool FileName::destroyDirectory() const
 
 
 // Only used in non Win32 platforms
+#ifndef Q_OS_WIN32
 static int mymkdir(char const * pathname, unsigned long int mode)
 {
        // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
@@ -686,10 +687,8 @@ 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;
 }
+#endif
 
 
 bool FileName::createDirectory(int permission) const