checksrc: detect "}else" uses as well
This commit is contained in:
parent
450975b0c3
commit
58a7c51362
@ -145,7 +145,7 @@ sub scanfile {
|
||||
}
|
||||
|
||||
# check for "} else"
|
||||
if($l =~ /^(.*)\} else/) {
|
||||
if($l =~ /^(.*)\} *else/) {
|
||||
checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
|
||||
}
|
||||
# check for "){"
|
||||
|
Loading…
Reference in New Issue
Block a user