summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:31:28 -0400
committerNiels de Vos <ndevos@redhat.com>2016-08-29 08:14:46 -0700
commitb25299b74389bfaef45a3b9034a0cad628c2a342 (patch)
tree7eb9bac6092fae5fdf7ba4f5231176cb6b54e90e /xlators/features/shard
parent2a3de9c61745afa786fd961ab70424b8f81a2599 (diff)
shard: fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a/the "leak" - via the generated rpc/xdr headers - of pragmas that mask these warnings. However 14085 won't pass the smoke test until all the warnings are fixed. Change-Id: I3e53f12371b002d7f2fe2e281b63794c7769f823 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15258 Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/features/shard')
-rw-r--r--xlators/features/shard/src/shard.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index abac0ccf64d..c704ad14017 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -2512,11 +2512,8 @@ next:
int
shard_post_lookup_unlink_handler (call_frame_t *frame, xlator_t *this)
{
- int ret = -1;
- shard_priv_t *priv = NULL;
shard_local_t *local = NULL;
- priv = this->private;
local = frame->local;
if (local->op_ret < 0) {