summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 13:22:03 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-08-29 09:36:25 -0700
commit253a6b2ae8c4d12c76a89635e89e99f40b9de08d (patch)
treeeff813dc4a35a69a61715ecdb46755245a758b27
parent55d70915665a73e951acc505a82a1ddee00609c8 (diff)
glusterd: 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: I4ce4ec8073c1da4ea60bf5488b3f57c91c4cffa6 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15284 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: N Balachandran <nbalacha@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index b4e1e873460..5a00811ec6f 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -216,14 +216,10 @@ validate_tier_thresholds (glusterd_volinfo_t *volinfo,
xlator_t *this = NULL;
int origin_val = -1;
gf_boolean_t current_rc = _gf_false;
- char *str_current_rc = NULL;
int current_wt = 0;
int current_rt = 0;
- char *str_current_wt = NULL;
- char *str_current_rt = NULL;
gf_boolean_t is_set_rc = _gf_false;
char *proposed_rc = NULL;
- gf_boolean_t is_set_wrt_thsd = _gf_false;
this = THIS;
@@ -541,7 +537,6 @@ validate_defrag_throttle_option (glusterd_volinfo_t *volinfo, dict_t *dict,
char *key, char *value, char **op_errstr)
{
char errstr[2048] = "";
- glusterd_conf_t *priv = NULL;
int ret = 0;
xlator_t *this = NULL;
@@ -854,7 +849,6 @@ validate_lock_migration_option (glusterd_volinfo_t *volinfo, dict_t *dict,
char *key, char *value, char **op_errstr)
{
char errstr[2048] = "";
- glusterd_conf_t *priv = NULL;
int ret = 0;
xlator_t *this = NULL;
gf_boolean_t b = _gf_false;