summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@linux.keithley.org>2016-08-30 09:46:00 -0400
committerNiels de Vos <ndevos@redhat.com>2016-09-05 04:13:32 -0700
commit6289a0a0f0ec855a1971fdf4954d81645111e2f0 (patch)
tree0b41475f55bce3593e6fa7742e91c62f8ad75ba5
parent02c828f54a693abf1521aa9b889289b25a463b4f (diff)
protocol/client (no 5): 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. BUG: 1369124 Change-Id: Ic209b1291927c56f009544eadebdc51ba5f77475 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@linux.keithley.org> Reviewed-on: http://review.gluster.org/15357 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: Kaleb KEITHLEY <kkeithle@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Niels de Vos <ndevos@redhat.com>
-rw-r--r--xlators/protocol/client/src/client.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
index a48104fd467..0287944ec98 100644
--- a/xlators/protocol/client/src/client.c
+++ b/xlators/protocol/client/src/client.c
@@ -148,14 +148,11 @@ client_grace_timeout (void *data)
int ver = 0;
xlator_t *this = NULL;
struct clnt_conf *conf = NULL;
- struct rpc_clnt *rpc = NULL;
GF_VALIDATE_OR_GOTO ("client", data, out);
this = THIS;
- rpc = (struct rpc_clnt *) data;
-
conf = (struct clnt_conf *) this->private;
pthread_mutex_lock (&conf->lock);
@@ -2211,7 +2208,6 @@ client_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event,
void *data)
{
xlator_t *this = NULL;
- char *handshake = NULL;
clnt_conf_t *conf = NULL;
int ret = 0;