aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-08-23 10:18:02 -0400
committerJeff Layton <jlayton@samba.org>2012-08-23 10:18:02 -0400
commita0bf123541ec6fd53948f41f17c9dba5d6a43648 (patch)
treefad6a36af820896016e29b2f497a0f2afacfeb4b /mount.cifs.c
parent72bce53289d939c3539b7d3cb957b748a4b1d2ec (diff)
downloadcifs-utils-a0bf123541ec6fd53948f41f17c9dba5d6a43648.tar.gz
cifs-utils-a0bf123541ec6fd53948f41f17c9dba5d6a43648.tar.xz
cifs-utils-a0bf123541ec6fd53948f41f17c9dba5d6a43648.zip
mount.cifs: silence compiler warnings about ignoring return code
In this case we explicitly don't care what these functions return, so declare a couple of unused variables to catch the results. Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index f843bb4..3fd472a 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1964,8 +1964,8 @@ restore_privs:
if (dacrc)
rc = rc ? rc : dacrc;
} else {
- setfsuid(oldfsuid);
- setfsgid(oldfsgid);
+ uid_t __attribute__((unused)) uignore = setfsuid(oldfsuid);
+ gid_t __attribute__((unused)) gignore = setfsgid(oldfsgid);
}
return rc;