mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Probably fix #10850 compiler warnings.
This commit is contained in:
parent
126c088b27
commit
27eb415d25
@ -283,6 +283,9 @@ bool FileName::changePermission(unsigned long int mode) const
|
|||||||
<< mode << ".");
|
<< mode << ".");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// squash warning
|
||||||
|
(void) mode;
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -683,7 +686,9 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -692,6 +697,7 @@ bool FileName::createDirectory(int permission) const
|
|||||||
LASSERT(!empty(), return false);
|
LASSERT(!empty(), return false);
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
// FIXME: "Permissions of created directories are ignored on this system."
|
// FIXME: "Permissions of created directories are ignored on this system."
|
||||||
|
(void) permission;
|
||||||
return createPath();
|
return createPath();
|
||||||
#else
|
#else
|
||||||
return mymkdir(toFilesystemEncoding().c_str(), permission) == 0;
|
return mymkdir(toFilesystemEncoding().c_str(), permission) == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user