Workarounded: warning: ignoring return value of ‘...’, declared with attribute warn_u...
authorlace <>
Sun, 1 Jan 2006 08:14:38 +0000 (08:14 +0000)
committerlace <>
Sun, 1 Jan 2006 08:14:38 +0000 (08:14 +0000)
src/client/fuse/fusermount.c

index c7e45f9..65b60dc 100644 (file)
@@ -121,7 +121,7 @@ static int lock_mtab(void)
 static void unlock_mtab(int mtablock)
 {
     if (mtablock >= 0) {
-       lockf(mtablock, F_ULOCK, 0);
+       int trash0=lockf(mtablock, F_ULOCK, 0);
        close(mtablock);
     }
 }
@@ -289,8 +289,9 @@ static int unmount_rename(const char *mnt, int quiet, int lazy,
     if (res == -1)
         return -1;
 
-    if (stat(mtab, &sbuf) == 0)
-        chown(mtab_new, sbuf.st_uid, sbuf.st_gid);
+    if (stat(mtab, &sbuf) == 0) {
+        int trash0=chown(mtab_new, sbuf.st_uid, sbuf.st_gid);
+                               }
 
     res = rename(mtab_new, mtab);
     if (res == -1) {
@@ -890,7 +891,7 @@ static int mount_fuse(const char *mnt, const char *opts)
         restore_privs();
 
     if (currdir_fd != -1) {
-        fchdir(currdir_fd);
+        int trash0=fchdir(currdir_fd);
         close(currdir_fd);
     }
     if (mountpoint_fd != -1)