From 9e0f36e5a70e9afe2d5d7595ad8ffa24a4b88fbc Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 18 Nov 2021 20:35:41 -0600 Subject: [PATCH] Fix unused variable warnings. --- src/core/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/os.c b/src/core/os.c index 166526c5..02fcfda0 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -429,9 +429,9 @@ static int proc_get_status(JanetProc *proc) { /* Function that is called in separate thread to wait on a pid */ static JanetEVGenericMessage janet_proc_wait_subr(JanetEVGenericMessage args) { JanetProc *proc = (JanetProc *) args.argp; +#ifdef WNOWAIT pid_t result; int status = 0; -#ifdef WNOWAIT do { result = waitpid(proc->pid, &status, WNOWAIT); } while (result == -1 && errno == EINTR);