From ae2ddb59381c37d79b4f1ce13028f02e9fffea47 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 12:11:24 -0400 Subject: core: 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: I3d8a7a3de35058aa97eab59d3f59208396298b03 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15246 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kotresh HR --- .../features/changelog/lib/src/gf-changelog-journal-handler.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'xlators/features/changelog/lib/src/gf-changelog-journal-handler.c') diff --git a/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c b/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c index 6ea7cac88da..2f197eed318 100644 --- a/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c +++ b/xlators/features/changelog/lib/src/gf-changelog-journal-handler.c @@ -647,7 +647,6 @@ gf_changelog_consume (xlator_t *this, void * gf_changelog_process (void *data) { - int ret = 0; xlator_t *this = NULL; gf_changelog_journal_t *jnl = NULL; gf_changelog_entry_t *entry = NULL; @@ -675,8 +674,8 @@ gf_changelog_process (void *data) pthread_mutex_unlock (&jnl_proc->lock); if (entry) { - ret = gf_changelog_consume (this, jnl, - entry->path, _gf_false); + (void) gf_changelog_consume (this, jnl, + entry->path, _gf_false); GF_FREE (entry); } } @@ -715,7 +714,6 @@ void gf_changelog_handle_journal (void *xl, char *brick, void *cbkdata, changelog_event_t *event) { - int ret = 0; gf_changelog_journal_t *jnl = NULL; gf_changelog_processor_t *jnl_proc = NULL; @@ -974,11 +972,8 @@ gf_changelog_init_history (xlator_t *this, void gf_changelog_journal_fini (void *xl, char *brick, void *data) { - int ret = 0; - xlator_t *this = NULL; gf_changelog_journal_t *jnl = NULL; - this = xl; jnl = data; gf_changelog_cleanup_processor (jnl); -- cgit