summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-12-31 03:51:52 -0500
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-12-31 13:58:57 +0000
commit714c8e96dde801b3b2e73fc130d02c78db1eb06f (patch)
tree20a62e08e525c80cca841fc422ba1f109fed7120
parent6c5ce11d20b3449b2088bdfd556ac149927f51e9 (diff)
downloadperl-714c8e96dde801b3b2e73fc130d02c78db1eb06f.tar.gz
smoke signs suppression
Message-ID: <4597C078.4000503@iki.fi> p4raw-id: //depot/perl@29645
-rw-r--r--iperlsys.h2
-rw-r--r--perly.c2
-rw-r--r--regcomp.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/iperlsys.h b/iperlsys.h
index 59b2f9a35d..bc999543f6 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -339,7 +339,7 @@ struct IPerlStdIOInfo
#define PerlSIO_set_cnt(f,c) PerlIOProc_abort()
#endif
#if defined(USE_STDIO_PTR) && defined(STDIO_PTR_LVALUE)
-#define PerlSIO_set_ptr(f,p) FILE_ptr(f) = ((STDCHAR*)(p))
+#define PerlSIO_set_ptr(f,p) (FILE_ptr(f) = (p))
#else
#define PerlSIO_set_ptr(f,p) PerlIOProc_abort()
#endif
diff --git a/perly.c b/perly.c
index 2357bb0285..016c7d7cdc 100644
--- a/perly.c
+++ b/perly.c
@@ -319,7 +319,7 @@ Perl_yyparse (pTHX)
int yyresult;
/* Lookahead token as an internal (translated) token number. */
- int yytoken;
+ int yytoken = 0;
SV *parser_sv; /* SV whose PVX holds the parser object */
register yy_parser *parser; /* the parser object */
diff --git a/regcomp.c b/regcomp.c
index a3558f50a9..4673b6ea82 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5065,7 +5065,7 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp,U32 depth)
/*notreached*/
{ /* named and numeric backreferences */
I32 num;
- char * parse_start;
+ char * parse_start = NULL;
case '&': /* (?&NAME) */
parse_start = RExC_parse - 1;
named_recursion:
@@ -8144,7 +8144,8 @@ Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o)
I32 n;
if (name) {
for ( n=0; n<SvIVX(sv_dat); n++ ) {
- Perl_sv_catpvf(aTHX_ sv, "%s%"IVdf, ( n ? "," : "" ), nums[n]);
+ Perl_sv_catpvf(aTHX_ sv, "%s%"IVdf,
+ (n ? "," : ""), (IV)nums[n]);
}
Perl_sv_catpvf(aTHX_ sv, " '%"SVf"'", *name );
}