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); | ~~ ^~ ```
This commit is contained in:
parent
e7e517499b
commit
cf3e2bbad2
2
proc.c
2
proc.c
@ -2020,7 +2020,7 @@ method_namespace(VALUE obj)
|
|||||||
if (!ns) return Qfalse;
|
if (!ns) return Qfalse;
|
||||||
if (ns->ns_object) return ns->ns_object;
|
if (ns->ns_object) return ns->ns_object;
|
||||||
// This should not happen
|
// 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;
|
return Qtrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user