qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 05/11] linux-user/main.c: Mark end_exclusive() as pos


From: riku . voipio
Subject: [Qemu-devel] [PULL 05/11] linux-user/main.c: Mark end_exclusive() as possibly unused
Date: Tue, 27 Jan 2015 23:07:16 +0200

From: Peter Maydell <address@hidden>

The function end_exclusive() isn't used on all targets; mark it as
such to avoid a clang warning.

Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
 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 95e8a51..cfa7d07 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);
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]