summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-11-14 16:32:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-11-14 16:32:33 +0000
commit0fdc08b6b5f98f1985cdae23a9e282c1de90ad84 (patch)
tree8816731112a48db89d055ab8501602ea7c271630 /pp_pack.c
parent4f9287d3eaf6618730a35a0d11810447b2f65449 (diff)
downloadperl-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 89b1a1c46e..ca2795df28 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -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;
}