mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
Fixup 27eb415d
: do not define mymkdir() when it is not used.
Pleases coverity.
This commit is contained in:
parent
43e4b80734
commit
706c9f2aa5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user