summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-01-27 04:01:27 +0100
committerGravatar Nikias Bassen2019-01-27 04:01:27 +0100
commit0a1116c222132e9fc17d2d119d1ca77c7897f429 (patch)
tree2ebe882e702afa016d8384191c90dc85cb1fbc37
parentff37642ad86a3d5bcd87905ea4ac27d7fc364584 (diff)
downloadlibideviceactivation-0a1116c222132e9fc17d2d119d1ca77c7897f429.tar.gz
libideviceactivation-0a1116c222132e9fc17d2d119d1ca77c7897f429.tar.bz2
win32: Make thread_once() static to silence compiler warning
-rw-r--r--src/activation.c2
1 files changed, 1 insertions, 1 deletions
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);