summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-09-13 06:28:26 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-09-13 09:50:21 -0700
commit7982de17f47ab2f8ddc4789a525754a56b26b325 (patch)
tree7eb0c0568ec1ab5afc5543377bebf2ee9fab698b /xlators
parent6b30e9bf5a612e105eb7ded0a89ef25fd8530ba5 (diff)
xlators/upcall: fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a "pragma leak" where the generated rpc/xdr headers have a pair of pragmas that disable these warnings. With the warnings disabled, many unused variables have crept into the code base. And 14085 won't pass its own smoke test until all these warnings are fixed. BUG: 1369124 Change-Id: I48c0d9bbf13ccf79975dd7b35d524f6d7428ac52 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15484 Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/upcall/src/upcall-internal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xlators/features/upcall/src/upcall-internal.c b/xlators/features/upcall/src/upcall-internal.c
index 0f07ae8df03..387679400cf 100644
--- a/xlators/features/upcall/src/upcall-internal.c
+++ b/xlators/features/upcall/src/upcall-internal.c
@@ -438,8 +438,6 @@ int
up_filter_unregd_xattr (dict_t *xattrs, char *xattr, data_t *v,
void *regd_xattrs)
{
- int ret = 0;
-
if (dict_get ((dict_t *)regd_xattrs, xattr) == NULL) {
/* xattr was not found in the registered xattr, hence do not
* send notification for its change