summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-09-13 05:56:25 -0400
committerRaghavendra G <rgowdapp@redhat.com>2016-09-13 23:32:39 -0700
commit7e1ee2efa0b4f5c42a48282204f3d3977ab41fe2 (patch)
tree4f4528c7b479ed2493a562569c54790919b3396b
parent88f842024f018cae3fa39831212ef30c37dcf964 (diff)
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 <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15481 Reviewed-by: Prashanth Pai <ppai@redhat.com> 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: Raghavendra G <rgowdapp@redhat.com>
-rw-r--r--xlators/performance/md-cache/src/md-cache.c4
1 files changed, 1 insertions, 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;
}