]> granicus.if.org Git - vim/commitdiff
patch 8.1.0704: building with Ruby 2.6 gives compiler warnings v8.1.0704
authorBram Moolenaar <Bram@vim.org>
Tue, 8 Jan 2019 19:29:32 +0000 (20:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 8 Jan 2019 19:29:32 +0000 (20:29 +0100)
Problem:    Building with Ruby 2.6 gives compiler warnings.
Solution:   Define a stub for rb_ary_detransient. (Ozaki Kiichi, closes #3779)

src/if_ruby.c
src/version.c

index 34fc0ed1cb310cbec2ce814e341a67732bd1f18d..c2a2ec3f78da0db1b0f8e9b26e2e082e1b7e4b76 100644 (file)
 #endif
 
 #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
-# define rb_ary_detransient (*dll_rb_ary_detransient)
+# define rb_ary_detransient rb_ary_detransient_stub
 #endif
 
 #include <ruby.h>
@@ -549,6 +549,13 @@ void rb_gc_writebarrier_unprotect_stub(VALUE obj)
 #  endif
 # endif
 
+# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26
+void rb_ary_detransient_stub(VALUE x)
+{
+    dll_rb_ary_detransient(x);
+}
+# endif
+
 static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
 
 /*
index 0693be11db49707fc692f2bfa5c108aa52c60cc1..95f3859020a0ab32772ee02752a0377c35363374 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    704,
 /**/
     703,
 /**/