From fa6c1b06ad65e18bd187b643c045e700f7081c2d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 26 Aug 2019 11:58:55 +0900 Subject: Suppress a "clobbered" warning --- process.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index f1cd802f95..db3f38de1b 100644 --- a/process.c +++ b/process.c @@ -3537,9 +3537,7 @@ rb_exec_atfork(void* arg, char *errmsg, size_t errmsg_buflen) { return rb_exec_async_signal_safe(arg, errmsg, errmsg_buflen); /* hopefully async-signal-safe */ } -#endif -#ifdef HAVE_WORKING_FORK #if SIZEOF_INT == SIZEOF_LONG #define proc_syswait (VALUE (*)(VALUE))rb_syswait #else @@ -3928,7 +3926,7 @@ retry_fork_async_signal_safe(int *status, int *ep, volatile int try_gc = 1; struct child_handler_disabler_state old; int err; - rb_nativethread_lock_t *const waitpid_lock_init = + rb_nativethread_lock_t *const volatile waitpid_lock_init = (w && WAITPID_USE_SIGCHLD) ? &GET_VM()->waitpid_lock : 0; while (1) { -- cgit v1.2.3