From 62d254bf7931d2ed961a5e1d78eac609f671dbbe Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Thu, 15 Sep 2016 12:27:58 -0400 Subject: xlators/afr: 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: I4946d460f66d3430bac8910260c0cb1b3e9ff87b Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15513 Smoke: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/cluster/afr/src/afr-transaction.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'xlators/cluster/afr') diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c index c0ecd8520f3..ec17c2a925a 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -1384,11 +1384,9 @@ afr_post_op_unlock_cbk (call_frame_t *frame, void *cookie, xlator_t *this, void *data, dict_t *xdata) { afr_local_t *local = NULL; - afr_private_t *priv = NULL; int call_count = -1; afr_internal_lock_t *int_lock = NULL; int32_t child_index = (long)cookie; - int i = 0; local = frame->local; child_index = (long) cookie; -- cgit