From b214a3c7d3005c8cd79f1a2669f35e32e995424d Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 10 Oct 2023 20:46:17 +0900 Subject: [PATCH] WIP surpress warning --- thread_pthread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thread_pthread.c b/thread_pthread.c index 7eae574d6ce7ef..7f45df81c0faf9 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1121,6 +1121,7 @@ thread_sched_switch(rb_thread_t *cth, rb_thread_t *next_th) thread_sched_switch0(cth->sched.context, next_th, nt); } +#if VM_CHECK_MODE > 0 RBIMPL_ATTR_MAYBE_UNUSED() static unsigned int grq_size(rb_vm_t *vm, rb_ractor_t *cr) @@ -1138,6 +1139,7 @@ grq_size(rb_vm_t *vm, rb_ractor_t *cr) } return i; } +#endif static void ractor_sched_enq(rb_vm_t *vm, rb_ractor_t *r)