Ref: #15979
Closes #15983
undef $banfunc{$1};
}
else {
- die "Invalid format in $dir/.checksrc on line $i\n";
+ die "Invalid format in $dir/.checksrc on line $i: $_\n";
}
}
close($rcfile);
}
}
+ # check for "return" with parentheses around just a value/name
+ if($l =~ /^(.*\W)return \(\w*\);/) {
+ checkwarn("RETURNPAREN", $line, length($1)+7, $file, $l,
+ "return with paren");
+ }
+
# check for "sizeof" without parenthesis
if(($l =~ /^(.*)sizeof *([ (])/) && ($2 ne "(")) {
if($1 =~ / *\#/) {