From 9760cf1f4e5d64e2775e5c010742176a336383a6 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 3 Jan 2021 11:47:29 -0600 Subject: [PATCH] Fix MSVC warning. --- src/core/os.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/os.c b/src/core/os.c index 58adc668..d6c55a1c 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -427,9 +427,11 @@ static int janet_proc_mark(void *p, size_t s) { } #ifdef JANET_EV -JANET_NO_RETURN +static JANET_NO_RETURN void +#else +static Janet #endif -static Janet os_proc_wait_impl(JanetProc *proc) { +os_proc_wait_impl(JanetProc *proc) { if (proc->flags & (JANET_PROC_WAITED | JANET_PROC_WAITING)) { janet_panicf("cannot wait twice on a process"); }