diff options
author | Andy Lester <andy@petdance.com> | 2005-05-01 10:07:55 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-02 15:46:51 +0000 |
commit | b7787f18a4d9a5b6205453133731406d627268af (patch) | |
tree | e3c1f3ea3b6da55ec9b061bcd3d168147cdcac30 /pp_pack.c | |
parent | 2728842dc82a9f71891d065b28cf34767a63fb0c (diff) | |
download | perl-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |