diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 13:22:03 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-08-29 09:36:53 -0700 |
commit | b231acedb8696ef298a405ffedd36dba8a7183be (patch) | |
tree | dc370d9c16aef062915944a8051aaa497a835a31 /xlators/mgmt | |
parent | 253a6b2ae8c4d12c76a89635e89e99f40b9de08d (diff) |
glusterd: 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: Id6f7555e35fd2bc37e8b9f81ac37d5384624501c
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15285
Smoke: Gluster Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 0f7bb05bde1..7d108276cb4 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -1350,7 +1350,6 @@ init (xlator_t *this) char storedir[PATH_MAX] = {0,}; char workdir[PATH_MAX] = {0,}; char cmd_log_filename[PATH_MAX] = {0,}; - int first_time = 0; char *mountbroker_root = NULL; int i = 0; int total_transport = 0; @@ -1418,8 +1417,6 @@ init (xlator_t *this) " ,errno = %d", workdir, errno); exit (1); } - - first_time = 1; } setenv ("GLUSTERD_WORKDIR", workdir, 1); @@ -1853,12 +1850,9 @@ out: void fini (xlator_t *this) { - glusterd_conf_t *conf = NULL; if (!this || !this->private) goto out; - conf = this->private; - glusterd_stop_uds_listener (this); /*stop unix socket rpc*/ glusterd_stop_listener (this); /*stop tcp/ip socket rpc*/ |