diff options
author | Andreas Schneider <asn@samba.org> | 2015-10-30 13:41:47 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-11-05 09:23:16 +0100 |
commit | 2dae19c43b2db4f4fe39d93cdb6918ae8a7dcc49 (patch) | |
tree | 6f578bbff852c4648d7d1850e41838f7ec524c66 | |
parent | 3328bcede7b2950f9d1ec4c0c9d8acf684b77d30 (diff) | |
download | samba-2dae19c43b2db4f4fe39d93cdb6918ae8a7dcc49.tar.gz |
uwrap: Fix build warning with release build
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | lib/uid_wrapper/uid_wrapper.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c index 2702bd7c71a..ab47dd0be6b 100644 --- a/lib/uid_wrapper/uid_wrapper.c +++ b/lib/uid_wrapper/uid_wrapper.c @@ -1148,7 +1148,9 @@ static int uwrap_setreuid_args(uid_t ruid, uid_t euid, static int uwrap_setreuid_thread(uid_t ruid, uid_t euid) { +#ifndef NDEBUG struct uwrap_thread *id = uwrap_tls_id; +#endif uid_t new_ruid = -1, new_euid = -1, new_suid = -1; int rc; @@ -1167,7 +1169,9 @@ static int uwrap_setreuid_thread(uid_t ruid, uid_t euid) #ifdef HAVE_SETREUID static int uwrap_setreuid(uid_t ruid, uid_t euid) { +#ifndef NDEBUG struct uwrap_thread *id = uwrap_tls_id; +#endif uid_t new_ruid = -1, new_euid = -1, new_suid = -1; int rc; @@ -1431,7 +1435,9 @@ static int uwrap_setregid_args(gid_t rgid, gid_t egid, static int uwrap_setregid_thread(gid_t rgid, gid_t egid) { +#ifndef NDEBUG struct uwrap_thread *id = uwrap_tls_id; +#endif gid_t new_rgid = -1, new_egid = -1, new_sgid = -1; int rc; @@ -1450,7 +1456,9 @@ static int uwrap_setregid_thread(gid_t rgid, gid_t egid) #ifdef HAVE_SETREGID static int uwrap_setregid(gid_t rgid, gid_t egid) { +#ifndef NDEBUG struct uwrap_thread *id = uwrap_tls_id; +#endif gid_t new_rgid = -1, new_egid = -1, new_sgid = -1; int rc; |