comparison src/if_ruby.c @ 19971:a042d2a3b13d v8.2.0541

patch 8.2.0541: Travis CI does not give compiler warnings Commit: https://github.com/vim/vim/commit/81ea1dfb97af6622c9ad3efdbad317ec965ebaeb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 11 18:01:41 2020 +0200 patch 8.2.0541: Travis CI does not give compiler warnings Problem: Travis CI does not give compiler warnings. Solution: Add flags for warnings. Fix uncovered problems. (Ozaki Kiichi, closes #5898)
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 Apr 2020 18:15:04 +0200
parents 435726a03481
children 6564dafe5005
comparison
equal deleted inserted replaced
19970:881b067e7cc6 19971:a042d2a3b13d
95 # define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub 95 # define rb_gc_writebarrier_unprotect rb_gc_writebarrier_unprotect_stub
96 #endif 96 #endif
97 97
98 #if defined(DYNAMIC_RUBY) && RUBY_VERSION >= 26 98 #if defined(DYNAMIC_RUBY) && RUBY_VERSION >= 26
99 # define rb_ary_detransient rb_ary_detransient_stub 99 # define rb_ary_detransient rb_ary_detransient_stub
100 #endif
101
102 // On macOS pre-installed Ruby defines "SIZEOF_TIME_T" as "SIZEOF_LONG" so it
103 // conflicts with the definition in config.h then causes macro-redifned warning.
104 #ifdef SIZEOF_TIME_T
105 # undef SIZEOF_TIME_T
100 #endif 106 #endif
101 107
102 #include <ruby.h> 108 #include <ruby.h>
103 #if RUBY_VERSION >= 19 109 #if RUBY_VERSION >= 19
104 # include <ruby/encoding.h> 110 # include <ruby/encoding.h>