From e80ada68059037282a32d296fffed18e01f836a0 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 12:11:24 -0400 Subject: glusterd: 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: Ib37642dc8d35dd1065398fc53c97de65869d5681 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15239 NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos Reviewed-by: mohammed rafi kc Smoke: Gluster Build System Reviewed-by: Prashanth Pai --- glusterfsd/src/glusterfsd-mgmt.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'glusterfsd/src') diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 294c6818819..00da4b0df19 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -47,9 +47,7 @@ int mgmt_cbk_spec (struct rpc_clnt *rpc, void *mydata, void *data) { glusterfs_ctx_t *ctx = NULL; - xlator_t *this = NULL; - this = mydata; ctx = glusterfsd_ctx; gf_log ("mgmt", GF_LOG_INFO, "Volume file changed"); @@ -1798,11 +1796,9 @@ mgmt_event_notify_cbk (struct rpc_req *req, struct iovec *iov, int count, { gf_event_notify_rsp rsp = {0,}; call_frame_t *frame = NULL; - glusterfs_ctx_t *ctx = NULL; int ret = 0; frame = myframe; - ctx = frame->this->ctx; if (-1 == req->rpc_status) { ret = -1; @@ -1834,11 +1830,9 @@ glusterfs_rebalance_event_notify_cbk (struct rpc_req *req, struct iovec *iov, { gf_event_notify_rsp rsp = {0,}; call_frame_t *frame = NULL; - glusterfs_ctx_t *ctx = NULL; int ret = 0; frame = myframe; - ctx = frame->this->ctx; if (-1 == req->rpc_status) { gf_log (frame->this->name, GF_LOG_ERROR, @@ -2363,7 +2357,6 @@ mgmt_pmap_signout_cbk (struct rpc_req *req, struct iovec *iov, int count, { pmap_signout_rsp rsp = {0,}; int ret = 0; - glusterfs_ctx_t *ctx = NULL; if (-1 == req->rpc_status) { rsp.op_ret = -1; @@ -2371,7 +2364,6 @@ mgmt_pmap_signout_cbk (struct rpc_req *req, struct iovec *iov, int count, goto out; } - ctx = glusterfsd_ctx; ret = xdr_to_generic (*iov, &rsp, (xdrproc_t)xdr_pmap_signout_rsp); if (ret < 0) { gf_log (THIS->name, GF_LOG_ERROR, "XDR decoding failed"); -- cgit