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-helpers.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'xlators/protocol/client/src/client-helpers.c') 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