diff options
author | Rick Delaney <rick@consumercontact.com> | 2007-07-07 19:06:11 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-07-11 12:02:11 +0000 |
commit | 500960a6f90e95877f90eef273215f16726946b1 (patch) | |
tree | bad3198260a93649ed46d90fa5e8402bf4657b63 /toke.c | |
parent | 58d3fd3b5888ac8ea3febee0b12943d3043ede14 (diff) | |
download | perl-500960a6f90e95877f90eef273215f16726946b1.tar.gz |
Re: [perl #43545] 'no warnings' effects $@.
Message-ID: <20070708030611.GJ436@bort.ca>
p4raw-id: //depot/perl@31587
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -12540,8 +12540,10 @@ Perl_yyerror(pTHX_ const char *s) (int)PL_multi_open,(int)PL_multi_close,(IV)PL_multi_start); PL_multi_end = 0; } - if (PL_in_eval & EVAL_WARNONLY && ckWARN_d(WARN_SYNTAX)) - Perl_warner(aTHX_ packWARN(WARN_SYNTAX), "%"SVf, SVfARG(msg)); + if (PL_in_eval & EVAL_WARNONLY) { + if (ckWARN_d(WARN_SYNTAX)) + Perl_warner(aTHX_ packWARN(WARN_SYNTAX), "%"SVf, SVfARG(msg)); + } else qerror(msg); if (PL_error_count >= 10) { |