summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 13:22:02 -0400
committerNiels de Vos <ndevos@redhat.com>2016-08-29 08:20:13 -0700
commita4a48b4423a8ff21b39ed231d91cc27f74ff80f6 (patch)
tree7034bc881b99bdf88b0c54ef2d23999f7dc2a475
parentb199e81f5e07f89252ecc646546a58f8541b5f9a (diff)
glusterd (ganesha): 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: I8496b0d1158aeac88cdee991e40c5bb1705f1c09 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15262 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: soumya k <skoduri@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-ganesha.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
index 3af2c79cafc..6c34de0dda4 100644
--- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c
+++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c
@@ -40,7 +40,6 @@ parsing_ganesha_ha_conf(const char *key) {
char scratch[MAX_LINE * 2] = {0,};
char *value = NULL, *pointer = NULL, *end_pointer = NULL;
FILE *fp;
- struct stat st = {0,};
fp = fopen (GANESHA_HA_CONF, "r");
if (fp == NULL) {
@@ -233,14 +232,9 @@ int
glusterd_op_stage_set_ganesha (dict_t *dict, char **op_errstr)
{
int ret = -1;
- char *volname = NULL;
- int exists = 0;
int value = -1;
gf_boolean_t option = _gf_false;
char *str = NULL;
- int dict_count = 0;
- int flags = 0;
- glusterd_volinfo_t *volinfo = NULL;
glusterd_conf_t *priv = NULL;
xlator_t *this = NULL;
@@ -314,7 +308,6 @@ glusterd_op_set_ganesha (dict_t *dict, char **errstr)
glusterd_conf_t *priv = NULL;
char *key = NULL;
char *value = NULL;
- dict_t *vol_opts = NULL;
char *next_version = NULL;
this = THIS;
@@ -458,14 +451,12 @@ ganesha_manage_export (dict_t *dict, char *value, char **op_errstr)
{
runner_t runner = {0,};
int ret = -1;
- char str[1024];
glusterd_volinfo_t *volinfo = NULL;
dict_t *vol_opts = NULL;
char *volname = NULL;
xlator_t *this = NULL;
glusterd_conf_t *priv = NULL;
gf_boolean_t option = _gf_false;
- int i = 1;
runinit (&runner);
this = THIS;
@@ -746,11 +737,8 @@ int
start_ganesha (char **op_errstr)
{
int ret = -1;
- char *hostname = NULL;
dict_t *vol_opts = NULL;
glusterd_volinfo_t *volinfo = NULL;
- int count = 0;
- char *volname = NULL;
glusterd_conf_t *priv = NULL;
runner_t runner = {0,};