summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-05-01 10:07:55 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-02 15:46:51 +0000
commitb7787f18a4d9a5b6205453133731406d627268af (patch)
treee3c1f3ea3b6da55ec9b061bcd3d168147cdcac30 /pp_pack.c
parent2728842dc82a9f71891d065b28cf34767a63fb0c (diff)
downloadperl-b7787f18a4d9a5b6205453133731406d627268af.tar.gz
printf.patch: Adding printf checking for gcc
Message-ID: <20050501200755.GA30259@petdance.com> p4raw-id: //depot/perl@24365
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pp_pack.c b/pp_pack.c
index bb312a3f7e..826b26e6b0 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -940,7 +940,6 @@ S_next_symbol(pTHX_ tempsym_t* symptr )
{
const char* patptr = symptr->patptr;
const char* patend = symptr->patend;
- const char *allowed = "";
symptr->flags &= ~FLAG_SLASH;
@@ -987,7 +986,8 @@ S_next_symbol(pTHX_ tempsym_t* symptr )
/* look for modifiers */
while (patptr < patend) {
- I32 modifier = 0;
+ const char *allowed;
+ I32 modifier;
switch (*patptr) {
case '!':
modifier = TYPE_IS_SHRIEKING;
@@ -1004,6 +1004,8 @@ S_next_symbol(pTHX_ tempsym_t* symptr )
break;
#endif /* PERL_PACK_CAN_BYTEORDER */
default:
+ allowed = "";
+ modifier = 0;
break;
}