summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell2017-07-18 18:26:31 +0200
committerPeter Maydell2017-07-21 11:34:40 +0200
commit06943a626964c3dabb3931cacc7180cd22fa7fda (patch)
tree08e93d07c26bf03489e3b117ae849eaf1e234b2a
parentUse qemu_tolower() and qemu_toupper(), not tolower() and toupper() (diff)
downloadqemu-06943a626964c3dabb3931cacc7180cd22fa7fda.tar.gz
qemu-06943a626964c3dabb3931cacc7180cd22fa7fda.tar.xz
qemu-06943a626964c3dabb3931cacc7180cd22fa7fda.zip
bsd-user/mmap.c: Move __thread attribute to right place
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
-rw-r--r--bsd-user/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c
index 7f2018ede0..20cd29d145 100644
--- a/bsd-user/mmap.c
+++ b/bsd-user/mmap.c
@@ -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)
{