diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-16 15:06:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-16 15:06:59 +0100 |
commit | 6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c (patch) | |
tree | d2277cebb1354524326ac1333b3bd47f7453c456 /src/if_perl.xs | |
parent | f8df7addc5f741c16fa2a458f8777ac1fdf2e01e (diff) | |
download | vim-git-6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c.tar.gz |
patch 7.4.1334v7.4.1334
Problem: Many compiler warnings with MingW.
Solution: Add type casts. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index b723dcbe5..47c944039 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -49,6 +49,12 @@ # define __inline__ __inline #endif +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-variable" +# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +#endif + #include <EXTERN.h> #include <perl.h> #include <XSUB.h> @@ -1730,3 +1736,6 @@ Append(vimbuf, ...) } } +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif |