From 6289a0a0f0ec855a1971fdf4954d81645111e2f0 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Tue, 30 Aug 2016 09:46:00 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15357 Smoke: Gluster Build System Tested-by: Kaleb KEITHLEY NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos --- xlators/protocol/client/src/client.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xlators/protocol/client/src/client.c') 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; -- cgit