diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-11 18:01:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-11 18:01:41 +0200 |
commit | 81ea1dfb97af6622c9ad3efdbad317ec965ebaeb (patch) | |
tree | 51fd1d630abf2046e17da9d6b9ab21052b02efa2 /src/if_perl.xs | |
parent | 004a6781b3cf15ca5dd632c38cc09bb3b253d1f8 (diff) |
patch 8.2.0541: Travis CI does not give compiler warningsv8.2.0541
Problem: Travis CI does not give compiler warnings.
Solution: Add flags for warnings. Fix uncovered problems. (Ozaki Kiichi,
closes #5898)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r-- | src/if_perl.xs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs index 3af309a65d..015189cc04 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -195,7 +195,9 @@ typedef int perl_key; # define Perl_croak_xs_usage dll_Perl_croak_xs_usage # endif # ifndef PROTO -# define Perl_croak_nocontext dll_Perl_croak_nocontext +# ifdef PERL_IMPLICIT_CONTEXT +# define Perl_croak_nocontext dll_Perl_croak_nocontext +# endif # define Perl_call_argv dll_Perl_call_argv # define Perl_call_pv dll_Perl_call_pv # define Perl_eval_sv dll_Perl_eval_sv @@ -345,7 +347,9 @@ static void (*Perl_croak_xs_usage)(pTHX_ const CV *const, const char *const para __attribute__noreturn__; # endif # endif +# ifdef PERL_IMPLICIT_CONTEXT static void (*Perl_croak_nocontext)(const char*, ...) __attribute__noreturn__; +# endif static I32 (*Perl_dowantarray)(pTHX); static void (*Perl_free_tmps)(pTHX); static HV* (*Perl_gv_stashpv)(pTHX_ const char*, I32); |