aboutsummaryrefslogtreecommitdiff
path: root/lib/checksrc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/checksrc.pl')
-rwxr-xr-xlib/checksrc.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index c3e01305e..1aecd988d 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -62,7 +62,7 @@ while(1) {
next;
}
elsif($file =~ /-W(.*)/) {
- $wlist = $1;
+ $wlist .= " $1 ";
$file = shift @ARGV;
next;
}
@@ -79,7 +79,7 @@ if(!$file) {
}
do {
- if($file ne "$wlist") {
+ if($wlist !~ / $file /) {
my $fullname = $file;
$fullname = "$dir/$file" if ($fullname !~ '^\.?\.?/');
scanfile($fullname);