From cf3e2bbad27b8e37fcad7b804b44b907eca45a86 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Thu, 1 May 2025 17:46:01 +0900 Subject: [PATCH] Prevent a compile error of clang's -Wformat-pedantic ``` /github/workspace/src/proc.c:2023:65: error: format specifies type 'void *' but the argument has type 'const rb_namespace_t *' (aka 'const struct rb_namespace_struct *') [-Werror,-Wformat-pedantic] 2023 | rb_bug("Unexpected namespace on the method definition: %p", ns); | ~~ ^~ ``` --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc.c b/proc.c index ed2e56369e..9fa47bddb5 100644 --- a/proc.c +++ b/proc.c @@ -2020,7 +2020,7 @@ method_namespace(VALUE obj) if (!ns) return Qfalse; if (ns->ns_object) return ns->ns_object; // This should not happen - rb_bug("Unexpected namespace on the method definition: %p", ns); + rb_bug("Unexpected namespace on the method definition: %p", (void*) ns); return Qtrue; }