To: vim_dev@googlegroups.com Subject: Patch 8.1.0704 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.1.0704 Problem: Building with Ruby 2.6 gives compiler warnings. Solution: Define a stub for rb_ary_detransient. (Ozaki Kiichi, closes #3779) Files: src/if_ruby.c *** ../vim-8.1.0703/src/if_ruby.c 2018-12-27 22:10:57.797337989 +0100 --- src/if_ruby.c 2019-01-08 20:24:05.178582966 +0100 *************** *** 124,130 **** #endif #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26 ! # define rb_ary_detransient (*dll_rb_ary_detransient) #endif #include --- 124,130 ---- #endif #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 26 ! # define rb_ary_detransient rb_ary_detransient_stub #endif #include *************** *** 549,554 **** --- 549,561 ---- # 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 */ /* *** ../vim-8.1.0703/src/version.c 2019-01-08 20:14:31.614957028 +0100 --- src/version.c 2019-01-08 20:27:03.553087076 +0100 *************** *** 801,802 **** --- 801,804 ---- { /* Add new patch number below this line */ + /**/ + 704, /**/ -- Why is it called "Windows"? "Gates" would be more appropriate... /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///