Skip to content

Commit bfba3fa

Browse files
committed
Fix missing type for rb_debug_rstring_null_ptr
I don't really understand how this type went missing since it's on the upstream version. Maybe a bad rebase/merge? Either way this fixes the following compilation error. ``` string.c:437:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] rb_debug_rstring_null_ptr(const char *func) ^ int string.c:437:1: error: conflicting types for 'rb_debug_rstring_null_ptr' ./include/ruby/internal/core/rstring.h:364:6: note: previous declaration is here void rb_debug_rstring_null_ptr(const char *func); ^ ```
1 parent f014f8b commit bfba3fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: string.c

+1
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ rb_str_make_embedded(VALUE str)
434434
TERM_FILL(RSTRING(str)->as.embed.ary + len, TERM_LEN(str));
435435
}
436436

437+
void
437438
rb_debug_rstring_null_ptr(const char *func)
438439
{
439440
fprintf(stderr, "%s is returning NULL!! "

0 commit comments

Comments
 (0)