0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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 #3779)
This commit is contained in:
Bram Moolenaar
2019-01-08 20:29:32 +01:00
parent 8aef43b66c
commit f62fc316a2
2 changed files with 10 additions and 1 deletions

View File

@@ -124,7 +124,7 @@
#endif #endif
#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26 #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 #endif
#include <ruby.h> #include <ruby.h>
@@ -549,6 +549,13 @@ void rb_gc_writebarrier_unprotect_stub(VALUE obj)
# endif # endif
# 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 */ static HINSTANCE hinstRuby = NULL; /* Instance of ruby.dll */
/* /*

View File

@@ -799,6 +799,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
704,
/**/ /**/
703, 703,
/**/ /**/