diff options
| author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 12:11:24 -0400 | 
|---|---|---|
| committer | Raghavendra G <rgowdapp@redhat.com> | 2016-08-27 04:10:34 -0700 | 
| commit | 225d8034354a233bbb9f1c6fd86b40562efd0ae9 (patch) | |
| tree | f24c0fa24ec0624d4460a0dacdd97a887c77e5ab /xlators/features/quota/src/quotad-aggregator.c | |
| parent | 6c283f107b646405936520e2549510115bf2ef64 (diff) | |
quota: 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: Ic5c1e20468d47ccb5243b8e99f946fd31eb737b8
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15250
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/quota/src/quotad-aggregator.c')
| -rw-r--r-- | xlators/features/quota/src/quotad-aggregator.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c index 82d18ea15e0..428153fa2bd 100644 --- a/xlators/features/quota/src/quotad-aggregator.c +++ b/xlators/features/quota/src/quotad-aggregator.c @@ -182,7 +182,6 @@ quotad_aggregator_getlimit (rpcsvc_request_t *req)          gf_cli_req                 cli_req = {{0}, };          gf_cli_rsp                 cli_rsp = {0};          gfs3_lookup_req            args  = {{0,},}; -        gfs3_lookup_rsp            rsp   = {0,};          quotad_aggregator_state_t *state = NULL;          xlator_t                  *this  = NULL;          dict_t                    *dict  = NULL; @@ -225,8 +224,8 @@ quotad_aggregator_getlimit (rpcsvc_request_t *req)          frame = quotad_aggregator_get_frame_from_req (req);          if (frame == NULL) { -                rsp.op_errno = ENOMEM; -                goto err; +                cli_rsp.op_errno = ENOMEM; +                goto errx;          }          state = frame->root->state;          state->xdata = dict; @@ -258,15 +257,16 @@ quotad_aggregator_getlimit (rpcsvc_request_t *req)          ret = qd_nameless_lookup (this, frame, &args, state->xdata,                                    quotad_aggregator_getlimit_cbk);          if (ret) { -                rsp.op_errno = ret; -                goto err; +                cli_rsp.op_errno = ret; +                goto errx;          }          return ret;  err: -        cli_rsp.op_ret = -1;          cli_rsp.op_errno = op_errno; +errx: +        cli_rsp.op_ret = -1;          cli_rsp.op_errstr = "";          quotad_aggregator_getlimit_cbk (this, frame, &cli_rsp);  | 
