summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-helpers.c
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:11:24 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-08-29 09:21:56 -0700
commitae2ddb59381c37d79b4f1ce13028f02e9fffea47 (patch)
treed55b3fa9efc9302bc3bfddbe134fb25959cafb1b /xlators/features/changelog/src/changelog-helpers.c
parent4640061a357632258541141163764314993e40ca (diff)
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 <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15246 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-helpers.c')
-rw-r--r--xlators/features/changelog/src/changelog-helpers.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c
index 0cb68587e57..1e045f7a780 100644
--- a/xlators/features/changelog/src/changelog-helpers.c
+++ b/xlators/features/changelog/src/changelog-helpers.c
@@ -165,7 +165,6 @@ int
changelog_cleanup_event_selection (xlator_t *this,
changelog_ev_selector_t *selection)
{
- int ret = 0;
int j = CHANGELOG_EV_SELECTION_RANGE;
LOCK (&selection->reflock);
@@ -392,7 +391,6 @@ update_path (xlator_t *this, char *cl_path)
char low_cl[] = "changelog";
char up_cl[] = "CHANGELOG";
char *found = NULL;
- int iter = 0;
int ret = -1;
found = strstr(cl_path, up_cl);