summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-09-16 03:49:20 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-09-16 05:37:08 -0700
commitf61222257af36aa157c97016fc40f58e6a436e5e (patch)
tree7af1699c7f38009817af66b38bd8abd2ca39bc05 /xlators/cluster/ec
parentda2aabe3334a9169b2c64cca317f58af21c2fc35 (diff)
cluster/ec: 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: I24607fc2082c3424f876f740a88fb7d0173d322d Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15518 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/cluster/ec')
-rw-r--r--xlators/cluster/ec/src/ec-common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c
index 28177bb98e1..7cc1becfdb0 100644
--- a/xlators/cluster/ec/src/ec-common.c
+++ b/xlators/cluster/ec/src/ec-common.c
@@ -1644,7 +1644,6 @@ ec_lock_next_owner(ec_lock_link_t *link, ec_cbk_data_t *cbk,
ec_lock_t *lock = link->lock;
ec_fop_data_t *fop = link->fop;
ec_inode_t *ctx = lock->ctx;
- ec_t *ec = fop->xl->private;
INIT_LIST_HEAD(&list);
@@ -1870,7 +1869,6 @@ ec_update_size_version(ec_lock_link_t *link, uint64_t *version,
int32_t err = -ENOMEM;
fop = link->fop;
- ec_t *ec = fop->xl->private;
lock = link->lock;
ctx = lock->ctx;