]> git.lyx.org Git - features.git/commitdiff
Squash gcc warning.
authorPavel Sanda <sanda@lyx.org>
Thu, 27 Mar 2014 08:10:59 +0000 (01:10 -0700)
committerPavel Sanda <sanda@lyx.org>
Thu, 27 Mar 2014 08:12:26 +0000 (01:12 -0700)
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg183142.html

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