Skip to content

Commit

Permalink
win32: Make thread_once() static to silence compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Jan 27, 2019
1 parent ff37642 commit 0a1116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activation.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ typedef volatile struct {
static thread_once_t init_once = {0, 0};
static thread_once_t deinit_once = {0, 0};

void thread_once(thread_once_t *once_control, void (*init_routine)(void))
static void thread_once(thread_once_t *once_control, void (*init_routine)(void))
{
while (InterlockedExchange(&(once_control->lock), 1) != 0) {
Sleep(1);
Expand Down

0 comments on commit 0a1116c

Please sign in to comment.