From 09ce988ad6d8e0576f1fc23abf71b43ac4b7514e Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Sun, 18 Sep 2016 08:23:23 +0200 Subject: cli: fix unused variable warnings/errors http://review.gluster.org/14085 fixes a "pragma leak" where the generated rpc/xdr headers have a pair of pragmas that disable these warnings. With the warnings disabled, many unused variables have crept into the code base. And 14085 won't pass its own smoke test until all these warnings are fixed. Change-Id: Ib78fed1fab00ba22a90f2148a343170488fa05cf BUG: 1369124 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/15523 Smoke: Gluster Build System Reviewed-by: Kaleb KEITHLEY NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- cli/src/cli-cmd-parser.c | 1 - cli/src/cli-rpc-ops.c | 2 -- 2 files changed, 3 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 86b02877159..d6ac6fd7077 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -930,7 +930,6 @@ cli_cmd_get_state_parse (struct cli_state *state, { dict_t *dict = NULL; int ret = -1; - uint32_t cmd = 0; char *odir = NULL; char *filename = NULL; char *daemon_name = NULL; diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index f20e962a61e..f217e13abdd 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -4334,8 +4334,6 @@ gf_cli_get_state (call_frame_t *frame, xlator_t *this, void *data) int ret = 0; dict_t *dict = NULL; - char *odir = NULL; - if (!frame || !this || !data) { ret = -1; goto out; -- cgit