mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Squash gcc warning.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg183142.html
This commit is contained in:
parent
567c4bb506
commit
0f8a2d2860
@ -1080,8 +1080,9 @@ int fileLock(const char * lock_file)
|
||||
void fileUnlock(int fd, const char * /* lock_file*/)
|
||||
{
|
||||
#if defined(HAVE_LOCKF)
|
||||
if ( fd >= 0) {
|
||||
(void) lockf(fd, F_ULOCK, 0);
|
||||
if (fd >= 0) {
|
||||
if (lockf(fd, F_ULOCK, 0))
|
||||
LYXERR0("Can't unlock the file.");
|
||||
close(fd);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user