mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +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
|
// Only used in non Win32 platforms
|
||||||
|
#ifndef Q_OS_WIN32
|
||||||
static int mymkdir(char const * pathname, unsigned long int mode)
|
static int mymkdir(char const * pathname, unsigned long int mode)
|
||||||
{
|
{
|
||||||
// FIXME: why don't we have mode_t in lyx::mkdir prototype ??
|
// 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
|
#else
|
||||||
# error "Don't know how to create a directory on this system."
|
# error "Don't know how to create a directory on this system."
|
||||||
#endif
|
#endif
|
||||||
// squash warnings
|
|
||||||
(void) mode;
|
|
||||||
(void) pathname;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
bool FileName::createDirectory(int permission) const
|
bool FileName::createDirectory(int permission) const
|
||||||
|
Loading…
Reference in New Issue
Block a user