summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-09-28 18:00:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-20 07:48:30 +0900
commit9b18f1bffe056f9f3e0c37b7c847ecb3ca942307 (patch)
tree00bbd2e4c54894fb78a9dfac354d42741c7cc297 /ractor.c
parent79f9f8326a34e499bb2d84d8282943188b1131bd (diff)
downloadruby-9b18f1bffe056f9f3e0c37b7c847ecb3ca942307.tar.gz
Supress `warning: data argument not used by format string [-Wformat-extra-args]`
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ractor.c b/ractor.c
index daf6f38f4d..9253327165 100644
--- a/ractor.c
+++ b/ractor.c
@@ -901,7 +901,7 @@ ractor_send_basket(rb_execution_context_t *ec, rb_ractor_t *r, struct rb_ractor_
else {
ractor_queue_enq(r, rq, b);
if (ractor_wakeup(r, wait_receiving, wakeup_by_send)) {
- RUBY_DEBUG_LOG("wakeup", 0);
+ RUBY_DEBUG_LOG("wakeup");
}
}
}
@@ -1348,7 +1348,7 @@ ractor_close_incoming(rb_execution_context_t *ec, rb_ractor_t *r)
r->sync.incoming_port_closed = true;
if (ractor_wakeup(r, wait_receiving, wakeup_by_close)) {
VM_ASSERT(r->sync.incoming_queue.cnt == 0);
- RUBY_DEBUG_LOG("cancel receiving", 0);
+ RUBY_DEBUG_LOG("cancel receiving");
}
}
else {
@@ -1385,7 +1385,7 @@ ractor_close_outgoing(rb_execution_context_t *ec, rb_ractor_t *r)
// raising yielding Ractor
if (!r->yield_atexit &&
ractor_wakeup(r, wait_yielding, wakeup_by_close)) {
- RUBY_DEBUG_LOG("cancel yielding", 0);
+ RUBY_DEBUG_LOG("cancel yielding");
}
}
RACTOR_UNLOCK(r);
@@ -1418,7 +1418,7 @@ static void
cancel_single_ractor_mode(void)
{
// enable multi-ractor mode
- RUBY_DEBUG_LOG("enable multi-ractor mode", 0);
+ RUBY_DEBUG_LOG("enable multi-ractor mode");
VALUE was_disabled = rb_gc_enable();