Received: from eggs.gnu.org ([2001:4830:134:3::10]:35313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9C4D-0004Zd-IU for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:19:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9C4C-0004MH-RG for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:19:57 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9C4C-0004Jb-Ko for qemu-devel@nongnu.org; Thu, 08 Jan 2015 07:19:56 -0500 From: Peter Maydell Date: Thu, 8 Jan 2015 12:19:47 +0000 Message-Id: <1420719588-8138-6-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1420719588-8138-1-git-send-email-peter.maydell@linaro.org> References: <1420719588-8138-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 5/6] linux-user/main.c: Mark end_exclusive() as possibly unused List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , patches@linaro.org The function end_exclusive() isn't used on all targets; mark it as such to avoid a clang warning. Signed-off-by: Peter Maydell --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index bbd1cfd..0fda51c 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -169,7 +169,7 @@ static inline void start_exclusive(void) } /* Finish an exclusive operation. */ -static inline void end_exclusive(void) +static inline void __attribute__((unused)) end_exclusive(void) { pending_cpus = 0; pthread_cond_broadcast(&exclusive_resume); -- 1.9.1