]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.534 v7.4.534
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Nov 2014 16:44:08 +0000 (17:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Nov 2014 16:44:08 +0000 (17:44 +0100)
Problem:    Warnings when compiling if_ruby.c.
Solution:   Avoid the warnings. (Ken Takata)

src/if_ruby.c
src/version.c

index 9301b72927140d73706f91bf97574f2c599b3ab3..eb6141fbc323bde1e2772025ac128c7930beed65 100644 (file)
 # define rb_num2int rb_num2int_stub
 #endif
 
-# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 21
+#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 21
 /* Ruby 2.1 adds new GC called RGenGC and RARRAY_PTR uses
  * rb_gc_writebarrier_unprotect_promoted if USE_RGENGC  */
-#  define rb_gc_writebarrier_unprotect_promoted rb_gc_writebarrier_unprotect_promoted_stub
-# endif
+# define rb_gc_writebarrier_unprotect_promoted rb_gc_writebarrier_unprotect_promoted_stub
+#endif
 
 #include <ruby.h>
 #ifdef RUBY19_OR_LATER
@@ -422,7 +422,7 @@ VALUE rb_num2ulong(VALUE x)
 # if defined(USE_RGENGC) && USE_RGENGC && !defined(PROTO)
 void rb_gc_writebarrier_unprotect_promoted_stub(VALUE obj)
 {
-    return dll_rb_gc_writebarrier_unprotect_promoted(obj);
+    dll_rb_gc_writebarrier_unprotect_promoted(obj);
 }
 # endif
 
@@ -763,7 +763,8 @@ static int ensure_ruby_initialized(void)
            /* suggested by Ariya Mizutani */
            int argc = 1;
            char *argv[] = {"gvim.exe"};
-           NtInitialize(&argc, &argv);
+           char **argvp = argv;
+           NtInitialize(&argc, &argvp);
 #endif
            {
 #if defined(RUBY19_OR_LATER) || defined(RUBY_INIT_STACK)
index f9c2804ea4cbf315f49aa912f878ac1b410d9dd8..5162178c05574268e5fcd429f16b24a9e6051752 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    534,
 /**/
     533,
 /**/