From 9b18f1bffe056f9f3e0c37b7c847ecb3ca942307 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 28 Sep 2021 18:00:03 +0900 Subject: Supress `warning: data argument not used by format string [-Wformat-extra-args]` --- ractor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ractor.c') 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(); -- cgit v1.2.3