summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-28 09:37:36 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-28 09:37:36 +0000
commitd5a71f3055c3a1145f32dafabd5c3bba8ef27f4d (patch)
tree27073062f2feb8423bfdf2bf73c7cc995838a009 /mg.c
parent3399f0414ad939f7d0381e4fc7351f342abe2de6 (diff)
downloadperl-d5a71f3055c3a1145f32dafabd5c3bba8ef27f4d.tar.gz
fixes for bugs in C<use warnings qw(FATAL all)> (from Paul Marquess)
p4raw-id: //depot/perl@5995
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 27039faf1c..0892511727 100644
--- a/mg.c
+++ b/mg.c
@@ -1735,7 +1735,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
PL_compiling.cop_warnings = pWARN_NONE;
break;
}
- if (isWARN_on(sv, WARN_ALL)) {
+ if (isWARN_on(sv, WARN_ALL) && !isWARNf_on(sv, WARN_ALL)) {
PL_compiling.cop_warnings = pWARN_ALL;
PL_dowarn |= G_WARN_ONCE ;
}