From 17be5486151a65947bc6cbd2cfaa39fcd0af50a1 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 29 Aug 2016 14:22:42 -0400 Subject: protocol/client (no 1): 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: I8a24e3c02144860859d653ab7115895fb3066378 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15338 Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Anuradha Talur Reviewed-by: Niels de Vos --- xlators/protocol/client/src/client-callback.c | 2 -- xlators/protocol/client/src/client-common.c | 2 -- 2 files changed, 4 deletions(-) (limited to 'xlators/protocol/client') diff --git a/xlators/protocol/client/src/client-callback.c b/xlators/protocol/client/src/client-callback.c index 134044015e4..23bd67ef12b 100644 --- a/xlators/protocol/client/src/client-callback.c +++ b/xlators/protocol/client/src/client-callback.c @@ -43,7 +43,6 @@ client_cbk_recall_lease (struct rpc_clnt *rpc, void *mydata, void *data) int ret = -1; struct iovec *iov = NULL; struct gf_upcall upcall_data = {0,}; - uuid_t gfid; struct gf_upcall_recall_lease rl_data = {0,}; gfs3_recall_lease_req recall_lease = {{0,},}; @@ -91,7 +90,6 @@ client_cbk_cache_invalidation (struct rpc_clnt *rpc, void *mydata, void *data) int ret = -1; struct iovec *iov = NULL; struct gf_upcall upcall_data = {0,}; - uuid_t gfid; struct gf_upcall_cache_invalidation ca_data = {0,}; gfs3_cbk_cache_invalidation_req ca_req = {0,}; diff --git a/xlators/protocol/client/src/client-common.c b/xlators/protocol/client/src/client-common.c index 4fff7e6e64f..19cf3c8991d 100644 --- a/xlators/protocol/client/src/client-common.c +++ b/xlators/protocol/client/src/client-common.c @@ -433,7 +433,6 @@ client_pre_flush (xlator_t *this, gfs3_flush_req *req, fd_t *fd, dict_t *xdata) { int64_t remote_fd = -1; int op_errno = ESTALE; - clnt_local_t *local = NULL; CLIENT_GET_REMOTE_FD (this, fd, DEFAULT_REMOTE_FD, remote_fd, op_errno, out); @@ -1345,7 +1344,6 @@ int client_pre_lease (xlator_t *this, gfs3_lease_req *req, loc_t *loc, struct gf_lease *lease, dict_t *xdata) { - int ret = 0; int op_errno = 0; if (!(loc && loc->inode)) -- cgit