diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 12:11:24 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-08-29 09:21:41 -0700 |
commit | 4640061a357632258541141163764314993e40ca (patch) | |
tree | b923704516b15778ed166dd15412c911bd36b666 /xlators/features | |
parent | 5751f294fc8c6ea256fc5a842c7a6eef14d35fd3 (diff) |
bit-rot: 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: I566fcbcae5aec575bfca40975b941c53546d4d97
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15245
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c b/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c index 09f556db10b..bf3e56a6c74 100644 --- a/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c +++ b/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c @@ -157,10 +157,8 @@ br_stub_add (xlator_t *this, uuid_t gfid) char gfid_path[PATH_MAX] = {0}; char bad_gfid_path[PATH_MAX] = {0}; int ret = 0; - uuid_t index = {0}; br_stub_private_t *priv = NULL; struct stat st = {0}; - int fd = 0; priv = this->private; GF_ASSERT_AND_GOTO_WITH_ERROR (this->name, !gf_uuid_is_null (gfid), @@ -294,8 +292,6 @@ br_stub_dir_create (xlator_t *this, br_stub_private_t *priv) int ret = -1; char fullpath[PATH_MAX] = {0}; char stub_gfid_path[PATH_MAX] = {0, }; - char path[PATH_MAX] = {0}; - size_t len = 0; gf_uuid_copy (priv->bad_object_dir_gfid, BR_BAD_OBJ_CONTAINER); @@ -355,7 +351,6 @@ br_stub_worker (void *data) br_stub_private_t *priv = NULL; xlator_t *this = NULL; call_stub_t *stub = NULL; - int ret = 0; THIS = data; @@ -366,8 +361,8 @@ br_stub_worker (void *data) pthread_mutex_lock (&priv->container.bad_lock); { while (list_empty (&priv->container.bad_queue)) { - ret = pthread_cond_wait (&priv->container.bad_cond, - &priv->container.bad_lock); + (void) pthread_cond_wait (&priv->container.bad_cond, + &priv->container.bad_lock); } stub = __br_stub_dequeue (&priv->container.bad_queue); |