From f7e61b222b2796ee43c976ec44c61a15d55ff662 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 8 Jan 2015 12:19:47 +0000 Subject: linux-user/main.c: Mark end_exclusive() as possibly unused The function end_exclusive() isn't used on all targets; mark it as such to avoid a clang warning. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user') diff --git a/linux-user/main.c b/linux-user/main.c index 95e8a519ce..cfa7d07b7a 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); -- cgit v1.2.3