Fixup 27eb415d: do not define mymkdir() when it is not used.

Pleases coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2018-01-12 12:22:28 +01:00
parent 43e4b80734
commit 706c9f2aa5

View 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