Skip to content

Commit

Permalink
bsd-user/mmap.c: Move __thread attribute to right place
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: [email protected]
  • Loading branch information
pm215 committed Jul 21, 2017
1 parent 95a5bef commit 06943a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsd-user/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 06943a6

Please sign in to comment.