bsd-user/mmap.c: Move __thread attribute to right place
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Jul 2017 16:26:31 +0000 (17:26 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 21 Jul 2017 09:34:40 +0000 (10:34 +0100)
Avoid a compiler warning on OpenBSD:
bsd-user/mmap.c:28:1: warning: '__thread' is not at beginning of declaration [-Wold-style-declaration]
by moving the __thread attribute to its proper place.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1500395194-21455-2-git-send-email-peter.maydell@linaro.org

bsd-user/mmap.c

index 7f2018ede04002bceafb0906af06e25589ddeeb7..20cd29d14514f35b4f2b39ba5c5e4168b0b31dcb 100644 (file)
@@ -25,7 +25,7 @@
 //#define DEBUG_MMAP
 
 static pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
-static int __thread mmap_lock_count;
+static __thread int mmap_lock_count;
 
 void mmap_lock(void)
 {