diff options
author | Jeff Layton <jlayton@samba.org> | 2012-08-23 10:18:02 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2012-08-23 10:18:02 -0400 |
commit | a0bf123541ec6fd53948f41f17c9dba5d6a43648 (patch) | |
tree | fad6a36af820896016e29b2f497a0f2afacfeb4b | |
parent | 72bce53289d939c3539b7d3cb957b748a4b1d2ec (diff) | |
download | cifs-utils-a0bf123541ec6fd53948f41f17c9dba5d6a43648.tar.gz cifs-utils-a0bf123541ec6fd53948f41f17c9dba5d6a43648.tar.bz2 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>
-rw-r--r-- | mount.cifs.c | 4 |
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; |