From 0a1116c222132e9fc17d2d119d1ca77c7897f429 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sun, 27 Jan 2019 04:01:27 +0100 Subject: win32: Make thread_once() static to silence compiler warning --- src/activation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activation.c b/src/activation.c index 34ea741..198289f 100644 --- a/src/activation.c +++ b/src/activation.c @@ -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); -- cgit v1.1-32-gdbae