From 02c828f54a693abf1521aa9b889289b25a463b4f Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 29 Aug 2016 14:24:48 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15339 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Anuradha Talur NetBSD-regression: NetBSD Build System Reviewed-by: Niels de Vos --- xlators/protocol/client/src/client-handshake.c | 2 -- xlators/protocol/client/src/client-helpers.c | 5 ----- 2 files changed, 7 deletions(-) (limited to 'xlators/protocol/client') 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; -- cgit