summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:11:24 -0400
committerAtin Mukherjee <amukherj@redhat.com>2016-08-27 06:42:32 -0700
commite80ada68059037282a32d296fffed18e01f836a0 (patch)
tree1463698c96cf8ff6c0a404162cdb8a1b8b2a50a3 /glusterfsd
parent75a1f70c2ec8f1b653622400d2c1cb8e5710b4c2 (diff)
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 <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15239 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> Reviewed-by: mohammed rafi kc <rkavunga@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c8
1 files changed, 0 insertions, 8 deletions
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");