]> git.lyx.org Git - features.git/blobdiff - src/support/filetools.cpp
Squash gcc warning.
[features.git] / src / support / filetools.cpp
index 00124816810cf6e7ba32c264064db9e53a33f796..92aeaf7fb4c8beeedfacc840c880ab243d5187a1 100644 (file)
@@ -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