From c204f452dfd9907a0d32f35294a0805701a6d993 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 12:15:22 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15257 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Prashanth Pai --- xlators/storage/posix/src/posix-helpers.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'xlators/storage/posix/src/posix-helpers.c') 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, -- cgit