diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-11-14 16:32:33 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-11-14 16:32:33 +0000 |
commit | 0fdc08b6b5f98f1985cdae23a9e282c1de90ad84 (patch) | |
tree | 8816731112a48db89d055ab8501602ea7c271630 /pp_pack.c | |
parent | 4f9287d3eaf6618730a35a0d11810447b2f65449 (diff) | |
download | perl-0fdc08b6b5f98f1985cdae23a9e282c1de90ad84.tar.gz |
The warning "Field too wide in 'u' format in pack" was emitted even
when pack warnings were not enabled
p4raw-id: //depot/perl@26130
Diffstat (limited to 'pp_pack.c')
-rw-r--r-- | pp_pack.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3547,7 +3547,8 @@ S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist ) if (len <= 2) len = 45; else len = len / 3 * 3; if (len >= 64) { - Perl_warner(aTHX_ packWARN(WARN_PACK), + if (ckWARN(WARN_PACK)) + Perl_warner(aTHX_ packWARN(WARN_PACK), "Field too wide in 'u' format in pack"); len = 63; } |