From 253a6b2ae8c4d12c76a89635e89e99f40b9de08d Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 13:22:03 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15284 Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: N Balachandran --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 6 ------ 1 file changed, 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; -- cgit