From: Jean-Marc Lasgouttes Date: Fri, 12 Jan 2018 11:22:28 +0000 (+0100) Subject: Fixup 27eb415d: do not define mymkdir() when it is not used. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4030 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=706c9f2aa50558ca0acffb392f85cd278a8a7adc;p=features.git Fixup 27eb415d: do not define mymkdir() when it is not used. Pleases coverity. --- diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index f9a6f7eaf1..219a9e5fd8 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -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