From 7e1ee2efa0b4f5c42a48282204f3d3977ab41fe2 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Tue, 13 Sep 2016 05:56:25 -0400 Subject: xlators/md-cache: 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. BUG: 1369124 Change-Id: I5904956b2033993abee0a29ff615e058a52c9ac0 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15481 Reviewed-by: Prashanth Pai NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra G --- xlators/performance/md-cache/src/md-cache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index 6359840f49d..3cbb83a86b6 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -2423,7 +2423,6 @@ mdc_priv_dump (xlator_t *this) { struct mdc_conf *conf = NULL; char key_prefix[GF_DUMP_MAX_BUF_LEN]; - char key[GF_DUMP_MAX_BUF_LEN]; conf = this->private; @@ -2715,7 +2714,6 @@ reconfigure (xlator_t *this, dict_t *options) { struct mdc_conf *conf = NULL; int timeout = 0; - int ret = 0; conf = this->private; @@ -2755,7 +2753,7 @@ reconfigure (xlator_t *this, dict_t *options) } conf->timeout = timeout; - ret = mdc_register_xattr_inval (this); + (void) mdc_register_xattr_inval (this); out: return 0; } -- cgit