diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-29 14:24:48 -0400 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2016-09-05 04:11:34 -0700 |
commit | 02c828f54a693abf1521aa9b889289b25a463b4f (patch) | |
tree | a5494588a20cb33a7c7e790cd0f73a53e4075a62 /xlators/protocol/client | |
parent | 17be5486151a65947bc6cbd2cfaa39fcd0af50a1 (diff) |
protocol/client (no 2): 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: I54055b3b1038374b4e21432da48fdaeca2938289
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15339
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Anuradha Talur <atalur@redhat.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r-- | xlators/protocol/client/src/client-handshake.c | 2 | ||||
-rw-r--r-- | xlators/protocol/client/src/client-helpers.c | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index 3284facb893..00299d15743 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -1570,14 +1570,12 @@ client_query_portmap (xlator_t *this, struct rpc_clnt *rpc) int ret = -1; pmap_port_by_brick_req req = {0,}; call_frame_t *fr = NULL; - clnt_conf_t *conf = NULL; dict_t *options = NULL; char *remote_subvol = NULL; char *xprt = NULL; char brick_name[PATH_MAX] = {0,}; options = this->options; - conf = this->private; ret = dict_get_str (options, "remote-subvolume", &remote_subvol); if (ret < 0) { diff --git a/xlators/protocol/client/src/client-helpers.c b/xlators/protocol/client/src/client-helpers.c index a7e46b55546..8293d47c102 100644 --- a/xlators/protocol/client/src/client-helpers.c +++ b/xlators/protocol/client/src/client-helpers.c @@ -338,12 +338,10 @@ int client_fd_fop_prepare_local (call_frame_t *frame, fd_t *fd, int64_t remote_fd) { xlator_t *this = NULL; - clnt_conf_t *conf = NULL; clnt_local_t *local = NULL; int ret = 0; this = frame->this; - conf = this->private; if (!frame || !fd) { ret = -EINVAL; @@ -376,7 +374,6 @@ client_process_response (call_frame_t *frame, xlator_t *this, clnt_local_t *local = frame->local; compound_rsp *this_rsp = NULL; compound_args_t *args = local->compound_args; - void *data = NULL; this_rsp = &rsp->compound_rsp_array.compound_rsp_array_val[index]; args_cbk->enum_list[index] = this_rsp->fop_enum; @@ -1764,8 +1761,6 @@ clnt_unserialize_rsp_locklist (xlator_t *this, struct gfs3_getactivelk_rsp *rsp, { struct gfs3_locklist *trav = NULL; lock_migration_info_t *temp = NULL; - char *buf = NULL; - int entry_len = 0; int ret = -1; clnt_conf_t *conf = NULL; |