summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-09-15 12:27:58 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-09-15 18:20:16 -0700
commit62d254bf7931d2ed961a5e1d78eac609f671dbbe (patch)
treea474ed992d84b0ac32822c1d1eec0c87c0515d80
parent36748550398f5e4a0bcdc603ac70a62453e86979 (diff)
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 <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15513 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r--xlators/cluster/afr/src/afr-transaction.c2
1 files changed, 0 insertions, 2 deletions
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;