summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-25 17:09:19 +0900
committerNARUSE, Yui <naruse@airemix.jp>2021-12-25 18:39:24 +0900
commit12bbae2d4e8dc9cadeb69bf9a2459c510fa2bba5 (patch)
treebc5bd529f7c7aba866d5f18b669d62905aa401b9 /ractor.c
parent17b48db00f6248fcd42ced7b398f1dcc36ec4dca (diff)
Suppress undef warnings for USE_RUBY_DEBUG_LOG
(cherry picked from commit 975a6efd7ea144275d4774d18ff0f568c1a1dc97)
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ractor.c b/ractor.c
index d6559dfc2a..3c05964e91 100644
--- a/ractor.c
+++ b/ractor.c
@@ -545,7 +545,7 @@ ractor_sleep_interrupt(void *ptr)
RACTOR_UNLOCK(r);
}
-#if USE_RUBY_DEBUG_LOG
+#if defined(USE_RUBY_DEBUG_LOG) && USE_RUBY_DEBUG_LOG
static const char *
wait_status_str(enum ractor_wait_status wait_status)
{