diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 12:15:22 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-08-29 10:30:51 -0700 |
commit | c204f452dfd9907a0d32f35294a0805701a6d993 (patch) | |
tree | 9e7ee5857eae50827528c7252a72339899259703 /xlators/storage/posix/src/posix-helpers.c | |
parent | b231acedb8696ef298a405ffedd36dba8a7183be (diff) |
posix: 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: Ibb3057cc072097434350c1dd2139b18610295825
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15257
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: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-helpers.c')
-rw-r--r-- | xlators/storage/posix/src/posix-helpers.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c index 36cee49696c..75895136155 100644 --- a/xlators/storage/posix/src/posix-helpers.c +++ b/xlators/storage/posix/src/posix-helpers.c @@ -696,7 +696,6 @@ static void _handle_list_xattr (dict_t *xattr_req, const char *real_path, int fdnum, posix_xattr_filler_t *filler) { - int ret = -1; ssize_t size = 0; char *list = NULL; int32_t list_offset = 0; @@ -742,7 +741,7 @@ _handle_list_xattr (dict_t *xattr_req, const char *real_path, int fdnum, if (dict_get (filler->xattr, key)) goto next; - ret = _posix_xattr_get_set_from_backend (filler, key); + (void) _posix_xattr_get_set_from_backend (filler, key); next: remaining_size -= strlen (key) + 1; list_offset += strlen (key) + 1; @@ -1928,11 +1927,8 @@ posix_fsyncer_process (xlator_t *this, call_stub_t *stub, gf_boolean_t do_fsync) { struct posix_fd *pfd = NULL; int ret = -1; - struct posix_private *priv = NULL; int op_errno = 0; - priv = this->private; - ret = posix_fd_ctx_get (stub->args.fd, this, &pfd, &op_errno); if (ret < 0) { gf_msg (this->name, GF_LOG_ERROR, op_errno, |