1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-21 12:43:15 +00:00

Fix unused variable warnings.

This commit is contained in:
Calvin Rose 2021-11-18 20:35:41 -06:00
parent d481d079ba
commit 9e0f36e5a7

View File

@ -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);