summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog.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.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.c')
-rw-r--r--xlators/features/changelog/src/changelog.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xlators/features/changelog/src/changelog.c b/xlators/features/changelog/src/changelog.c
index f8f95cf0e81..a2d18ac4d61 100644
--- a/xlators/features/changelog/src/changelog.c
+++ b/xlators/features/changelog/src/changelog.c
@@ -1877,9 +1877,6 @@ changelog_open_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int op_ret, int op_errno, fd_t *fd, dict_t *xdata)
{
int ret = 0;
- void *opaque = NULL;
- char *buf = NULL;
- ssize_t buflen = 0;
changelog_priv_t *priv = NULL;
changelog_event_t ev = {0,};
gf_boolean_t logopen = _gf_false;
@@ -2041,8 +2038,6 @@ changelog_assign_barrier_timeout(changelog_priv_t *priv, uint32_t timeout)
static void
changelog_cleanup_helper_threads (xlator_t *this, changelog_priv_t *priv)
{
- int ret = 0;
-
if (priv->cr.rollover_th) {
(void) changelog_thread_cleanup (this, priv->cr.rollover_th);
priv->cr.rollover_th = 0;
@@ -2059,7 +2054,6 @@ static int
changelog_spawn_helper_threads (xlator_t *this, changelog_priv_t *priv)
{
int ret = 0;
- int flags = 0;
/* Geo-Rep snapshot dependency:
*
@@ -2752,7 +2746,6 @@ changelog_cleanup_rpc (xlator_t *this, changelog_priv_t *priv)
static int
changelog_init_rpc (xlator_t *this, changelog_priv_t *priv)
{
- int ret = 0;
rpcsvc_t *rpc = NULL;
changelog_ev_selector_t *selection = NULL;
@@ -2786,7 +2779,6 @@ int32_t
init (xlator_t *this)
{
int ret = -1;
- char *tmp = NULL;
changelog_priv_t *priv = NULL;
GF_VALIDATE_OR_GOTO ("changelog", this, error_return);