From 07b12a1f4829ca3c7d60d56bb5c89069f0758d4c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 16 Aug 2021 16:02:49 +0900 Subject: Suppress unused-variable warnings --- process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index dc2dcf9560..22fa8bd15c 100644 --- a/process.c +++ b/process.c @@ -4088,10 +4088,10 @@ struct child_handler_disabler_state static void disable_child_handler_before_fork(struct child_handler_disabler_state *old) { +#ifdef HAVE_PTHREAD_SIGMASK int ret; sigset_t all; -#ifdef HAVE_PTHREAD_SIGMASK ret = sigfillset(&all); if (ret == -1) rb_sys_fail("sigfillset"); @@ -4108,9 +4108,9 @@ disable_child_handler_before_fork(struct child_handler_disabler_state *old) static void disable_child_handler_fork_parent(struct child_handler_disabler_state *old) { +#ifdef HAVE_PTHREAD_SIGMASK int ret; -#ifdef HAVE_PTHREAD_SIGMASK ret = pthread_sigmask(SIG_SETMASK, &old->sigmask, NULL); /* not async-signal-safe */ if (ret != 0) { rb_syserr_fail(ret, "pthread_sigmask"); -- cgit v1.2.3