From e2e93882b0441c46d63ca78e56331abdd42d80cc Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 12:11:24 -0400 Subject: core: 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: Id9bf5732f8c94824769409f7895be9dbe6fbd5fa BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15249 Smoke: Gluster Build System Reviewed-by: Susant Palai NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos Reviewed-by: Jeff Darcy --- xlators/features/locks/src/posix.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'xlators') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 149b6eb92a0..0f83b2aa9df 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -2951,9 +2951,6 @@ void __unwind_queued_locks (xlator_t *this, pl_inode_t *pl_inode, struct list_head *tmp_list) { - posix_lock_t *lock = NULL; - posix_lock_t *tmp = NULL; - if (list_empty (&pl_inode->queued_locks)) return; -- cgit