From 7982de17f47ab2f8ddc4789a525754a56b26b325 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Tue, 13 Sep 2016 06:28:26 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15484 Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System --- xlators/features/upcall/src/upcall-internal.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'xlators/features/upcall') 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 -- cgit