0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-04-11 18:01:41 +02:00
parent 004a6781b3
commit 81ea1dfb97
8 changed files with 54 additions and 14 deletions

View File

@@ -99,6 +99,12 @@
# define rb_ary_detransient rb_ary_detransient_stub
#endif
// On macOS pre-installed Ruby defines "SIZEOF_TIME_T" as "SIZEOF_LONG" so it
// conflicts with the definition in config.h then causes macro-redifned warning.
#ifdef SIZEOF_TIME_T
# undef SIZEOF_TIME_T
#endif
#include <ruby.h>
#if RUBY_VERSION >= 19
# include <ruby/encoding.h>