diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-09-13 05:52:09 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-09-13 10:04:44 -0700 |
commit | 50c0790bf1c1dca7b4e69546b1f6fe71785ecf2a (patch) | |
tree | 546f8f9610682f6a22a603c969a2ff5053e65a1a /xlators/cluster/afr | |
parent | 7982de17f47ab2f8ddc4789a525754a56b26b325 (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: I55d4106ac828380f3315f5a21593390905d3ab3a
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15476
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr-inode-write.c | 1 | ||||
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/xlators/cluster/afr/src/afr-inode-write.c b/xlators/cluster/afr/src/afr-inode-write.c index 200b420f5f0..3da34644500 100644 --- a/xlators/cluster/afr/src/afr-inode-write.c +++ b/xlators/cluster/afr/src/afr-inode-write.c @@ -362,7 +362,6 @@ afr_writev_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this, call_frame_t *fop_frame = NULL; int child_index = (long) cookie; int call_count = -1; - int ret = 0; local = frame->local; diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c index db7c6dbd2b0..c0ecd8520f3 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -1231,7 +1231,6 @@ afr_pre_op_writev_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; call_frame_t *fop_frame = NULL; default_args_cbk_t *write_args_cbk = NULL; compound_args_cbk_t *args_cbk = data; @@ -1240,7 +1239,6 @@ afr_pre_op_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int i = 0; local = frame->local; - priv = this->private; child_index = (long) cookie; if (local->pre_op_compat) @@ -1387,15 +1385,12 @@ afr_post_op_unlock_cbk (call_frame_t *frame, void *cookie, xlator_t *this, { afr_local_t *local = NULL; afr_private_t *priv = NULL; - compound_args_cbk_t *args_cbk = data; int call_count = -1; afr_internal_lock_t *int_lock = NULL; - afr_inodelk_t *inodelk = NULL; int32_t child_index = (long)cookie; int i = 0; local = frame->local; - priv = this->private; child_index = (long) cookie; local = frame->local; |