From bfba3fa9f79e5681c1037cf361da57cff9d62279 Mon Sep 17 00:00:00 2001 From: eileencodes Date: Wed, 10 Apr 2024 13:52:47 -0400 Subject: [PATCH] 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); ^ ``` --- string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/string.c b/string.c index 9732a8955649ea..6f99600008b26b 100644 --- a/string.c +++ b/string.c @@ -434,6 +434,7 @@ rb_str_make_embedded(VALUE str) TERM_FILL(RSTRING(str)->as.embed.ary + len, TERM_LEN(str)); } +void rb_debug_rstring_null_ptr(const char *func) { fprintf(stderr, "%s is returning NULL!! "