projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de522f7
)
Little warning nit
author
Michael G. Schwern
<schwern@pobox.com>
Sun, 16 Dec 2001 01:14:00 +0000
(20:14 -0500)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 16 Dec 2001 14:17:10 +0000
(14:17 +0000)
Message-ID: <
20011216061400
.GC8900@blackrider>
p4raw-id: //depot/perl@13716
lib/diagnostics.pm
patch
|
blob
|
history
diff --git
a/lib/diagnostics.pm
b/lib/diagnostics.pm
index
031b08e
..
c68fa3f
100755
(executable)
--- a/
lib/diagnostics.pm
+++ b/
lib/diagnostics.pm
@@
-411,7
+411,7
@@
sub import {
shift;
$^W = 1; # yup, clobbered the global variable;
# tough, if you want diags, you want diags.
- return if
$SIG{__WARN__} eq \&warn_trap
;
+ return if
defined $SIG{__WARN__} && ($SIG{__WARN__} eq \&warn_trap)
;
for (@_) {