summaryrefslogtreecommitdiff
path: root/lib/warnings.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/warnings.t')
-rw-r--r--lib/warnings.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/warnings.t b/lib/warnings.t
index 8e57a6db59..0e65da992b 100644
--- a/lib/warnings.t
+++ b/lib/warnings.t
@@ -40,6 +40,7 @@ foreach my $file (@w_files) {
next if $file =~ /(~|\.orig|,v)$/;
next if $file =~ /perlio$/ && !(find PerlIO::Layer 'perlio');
+ next if -d $file;
open F, "<$file" or die "Cannot open $file: $!\n" ;
my $line = 0;