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>
This commit is contained in:
parent
75a1f70c2e
commit
e80ada6805
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user