diff options
author | David Mitchell <davem@iabyn.com> | 2015-04-18 18:47:14 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-04-18 18:56:28 +0100 |
commit | de5fee32c31a31f94979c590c459eb6575d5767d (patch) | |
tree | 270498f142442d935e80bf429319296ef60f32bf | |
parent | 3ee1a09cee3f9a1b093b52ce2069c1d1c9b35637 (diff) | |
download | perl-de5fee32c31a31f94979c590c459eb6575d5767d.tar.gz |
fix some minor compiler warnings
S_deb_curcv's first param differed in constness between declaration and
definition.
GIMME_V can return an I32, so don't assign it to a U8.
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | proto.h | 2 | ||||
-rw-r--r-- | universal.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -2317,7 +2317,7 @@ Es |void |debug_start_match|NN const REGEXP *prog|const bool do_utf8\ #endif #if defined(PERL_IN_DUMP_C) -s |CV* |deb_curcv |const I32 ix +s |CV* |deb_curcv |I32 ix s |void |debprof |NN const OP *o s |UV |sequence_num |NULLOK const OP *o s |SV* |pm_description |NN const PMOP *pm @@ -6043,7 +6043,7 @@ STATIC I32 S_do_trans_simple_utf8(pTHX_ SV * const sv) #endif #if defined(PERL_IN_DUMP_C) -STATIC CV* S_deb_curcv(pTHX_ const I32 ix); +STATIC CV* S_deb_curcv(pTHX_ I32 ix); STATIC void S_debprof(pTHX_ const OP *o) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_DEBPROF \ diff --git a/universal.c b/universal.c index 1b4e5506aa..2e446dd6d9 100644 --- a/universal.c +++ b/universal.c @@ -903,7 +903,7 @@ XS(XS_re_regexp_pattern) { dXSARGS; REGEXP *re; - U8 const gimme = GIMME_V; + I32 const gimme = GIMME_V; EXTEND(SP, 2); SP -= items; |