changeset 15392:0807e2dbbab6 v8.1.0704

patch 8.1.0704: building with Ruby 2.6 gives compiler warnings commit https://github.com/vim/vim/commit/f62fc316a212160d1c58be88f30efd11eb595493 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 8 20:29:32 2019 +0100 patch 8.1.0704: building with Ruby 2.6 gives compiler warnings Problem: Building with Ruby 2.6 gives compiler warnings. Solution: Define a stub for rb_ary_detransient. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3779)
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Jan 2019 20:30:06 +0100
parents ba6f0883380b
children f5c098048499
files src/if_ruby.c src/version.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -124,7 +124,7 @@
 #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(V
 #  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 */
 
 /*
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    704,
+/**/
     703,
 /**/
     702,