From: lace <> Date: Sun, 1 Jan 2006 08:14:38 +0000 (+0000) Subject: Workarounded: warning: ignoring return value of ‘...’, declared with attribute warn_u... X-Git-Tag: captive-1_1_7~27 X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=ea5da22ce2f289aed400f26709e4013d013e1b48 Workarounded: warning: ignoring return value of ‘...’, declared with attribute warn_unused_result --- diff --git a/src/client/fuse/fusermount.c b/src/client/fuse/fusermount.c index c7e45f9..65b60dc 100644 --- a/src/client/fuse/fusermount.c +++ b/src/client/fuse/fusermount.c @@ -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)