summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-04-18 18:47:14 +0100
committerDavid Mitchell <davem@iabyn.com>2015-04-18 18:56:28 +0100
commitde5fee32c31a31f94979c590c459eb6575d5767d (patch)
tree270498f142442d935e80bf429319296ef60f32bf
parent3ee1a09cee3f9a1b093b52ce2069c1d1c9b35637 (diff)
downloadperl-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.fnc2
-rw-r--r--proto.h2
-rw-r--r--universal.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/embed.fnc b/embed.fnc
index a909f7d5bc..c0f28a4697 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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
diff --git a/proto.h b/proto.h
index f45a4a3617..53f62700d3 100644
--- a/proto.h
+++ b/proto.h
@@ -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;