summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-04-29 01:58:58 +0300
committerSteve Peters <steve@fisharerojo.org>2006-04-28 20:40:41 +0000
commit95b63a389ed86efed1a2fa9fd24931d56aac6070 (patch)
treeaeb1bc30a3a260876b428893c2b1a0c94fc4d6bd /pp_hot.c
parent899be1018553cb37b5cccbe4f65d169fd1c17028 (diff)
downloadperl-95b63a389ed86efed1a2fa9fd24931d56aac6070.tar.gz
reduce gcc -ansi -pedantic noise plus a suggestion
Message-ID: <44527402.8000506@gmail.com> p4raw-id: //depot/perl@28008
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 1e167a5b3c..0e56e109d9 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2781,7 +2781,7 @@ try_autoload:
else {
sub_name = sv_newmortal();
gv_efullname3(sub_name, gv, NULL);
- DIE(aTHX_ "Undefined subroutine &%"SVf" called", sub_name);
+ DIE(aTHX_ "Undefined subroutine &%"SVf" called", (void*)sub_name);
}
}
if (!cv)
@@ -2921,7 +2921,7 @@ Perl_sub_crush_depth(pTHX_ CV *cv)
SV* const tmpstr = sv_newmortal();
gv_efullname3(tmpstr, CvGV(cv), NULL);
Perl_warner(aTHX_ packWARN(WARN_RECURSION), "Deep recursion on subroutine \"%"SVf"\"",
- tmpstr);
+ (void*)tmpstr);
}
}
@@ -2937,7 +2937,9 @@ PP(pp_aelem)
SV *sv;
if (SvROK(elemsv) && !SvGAMAGIC(elemsv) && ckWARN(WARN_MISC))
- Perl_warner(aTHX_ packWARN(WARN_MISC), "Use of reference \"%"SVf"\" as array index", elemsv);
+ Perl_warner(aTHX_ packWARN(WARN_MISC),
+ "Use of reference \"%"SVf"\" as array index",
+ (void*)elemsv);
if (elem > 0)
elem -= CopARYBASE_get(PL_curcop);
if (SvTYPE(av) != SVt_PVAV)