summaryrefslogtreecommitdiffstats
path: root/cli/src/cli-cmd-parser.c
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:11:24 -0400
committerVijay Bellur <vbellur@redhat.com>2016-08-27 21:27:18 -0700
commita5212486efb94583fde62b575508a945cdfb66e2 (patch)
treeb1318ef9bb9b9dc9e39cd44baaad0808a6245d73 /cli/src/cli-cmd-parser.c
parente80ada68059037282a32d296fffed18e01f836a0 (diff)
cli: 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: Ifc33762cf62259961ceb35ae9ac3cbec7094b703 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15238 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: jiffin tony Thottan <jthottan@redhat.com> Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r--cli/src/cli-cmd-parser.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 20dcda5619e..e0a92ddbc6e 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -436,7 +436,6 @@ cli_cmd_volume_create_parse (struct cli_state *state, const char **words,
char *volname = NULL;
int ret = -1;
gf1_cluster_type type = GF_CLUSTER_TYPE_NONE;
- int count = 1;
int sub_count = 1;
int brick_index = 0;
char *trans_type = NULL;
@@ -447,7 +446,6 @@ cli_cmd_volume_create_parse (struct cli_state *state, const char **words,
"redundancy", "disperse-data", "arbiter", NULL };
char *w = NULL;
- char *ptr = NULL;
int op_count = 0;
int32_t replica_count = 1;
int32_t arbiter_count = 0;
@@ -644,9 +642,6 @@ cli_cmd_volume_create_parse (struct cli_state *state, const char **words,
if (!trans_type)
trans_type = gf_strdup ("tcp");
- /* reset the count value now */
- count = 1;
-
if (index >= wordcount) {
ret = -1;
goto out;
@@ -832,10 +827,8 @@ cli_cmd_ganesha_parse (struct cli_state *state,
{
dict_t *dict = NULL;
int ret = -1;
- int flags = 0;
char *key = NULL;
char *value = NULL;
- int i = 0;
char *w = NULL;
char *opwords[] = { "enable", "disable", NULL };
const char *question = NULL;
@@ -1918,7 +1911,6 @@ cli_cmd_volume_detach_tier_parse (const char **words, int wordcount,
char *word = NULL;
dict_t *dict = NULL;
int32_t command = GF_OP_CMD_NONE;
- int force = 0;
dict = dict_new ();
if (!dict)
@@ -3663,8 +3655,6 @@ cli_cmd_volume_heal_options_parse (const char **words, int wordcount,
{
int ret = 0;
dict_t *dict = NULL;
- char *hostname = NULL;
- char *path = NULL;
gf_xl_afr_op_t op = GF_SHD_OP_INVALID;
dict = dict_new ();
@@ -3987,10 +3977,8 @@ int
cli_snap_clone_parse (dict_t *dict, const char **words, int wordcount) {
uint64_t i = 0;
int ret = -1;
- char key[PATH_MAX] = "";
char *clonename = NULL;
unsigned int cmdi = 2;
- int flags = 0;
/* cmdi is command index, here cmdi is "2" (gluster snapshot clone)*/
GF_ASSERT (words);