From be93ca2b9f3f1bb5d38b0fd306c19c4b3d0923f7 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 12:15:14 -0400 Subject: protocol/server: 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: I5a48055c4b0a4a07dd511ad4f2e9ef823b9c60b2 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15255 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra G --- xlators/protocol/server/src/server-common.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'xlators/protocol/server/src/server-common.c') diff --git a/xlators/protocol/server/src/server-common.c b/xlators/protocol/server/src/server-common.c index 9a023aaa49e..90d66dd7597 100644 --- a/xlators/protocol/server/src/server-common.c +++ b/xlators/protocol/server/src/server-common.c @@ -273,7 +273,6 @@ server_post_rename (call_frame_t *frame, struct iatt *postnewparent) { inode_t *tmp_inode = NULL; - inode_t *tmp_parent = NULL; stbuf->ia_type = state->loc.inode->ia_type; @@ -319,7 +318,6 @@ server_post_open (call_frame_t *frame, xlator_t *this, { server_ctx_t *serv_ctx = NULL; uint64_t fd_no = 0; - int ret = 0; serv_ctx = server_ctx_get (frame->root->client, this); if (serv_ctx == NULL) { @@ -350,7 +348,6 @@ server_post_opendir (call_frame_t *frame, xlator_t *this, { server_ctx_t *serv_ctx = NULL; uint64_t fd_no = 0; - int ret = 0; serv_ctx = server_ctx_get (frame->root->client, this); if (serv_ctx == NULL) { -- cgit