summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-03 11:42:31 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-10-03 13:59:48 +0900
commitff480f29533432dc03a22072d76f42bf8b641e76 (patch)
treec385d3f5cbf70e8ad9720ac5aaf98f9d17868226 /thread.c
parentceeae31901275c9a3fde19aa05b343fbcf6187d1 (diff)
Cast to void pointer to suppress -Wformat-pedantic in RUBY_DEBUG_LOG
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 9357d14b8a..148a43aed9 100644
--- a/thread.c
+++ b/thread.c
@@ -992,7 +992,7 @@ thread_create_core(VALUE thval, struct thread_create_params *params)
rb_native_mutex_initialize(&th->interrupt_lock);
- RUBY_DEBUG_LOG("r:%u th:%p", rb_ractor_id(th->ractor), th);
+ RUBY_DEBUG_LOG("r:%u th:%p", rb_ractor_id(th->ractor), (void *)th);
rb_ractor_living_threads_insert(th->ractor, th);