|
@@ -3975,8 +3975,8 @@ sub string_find_replace {
|
|
|
# check for new externs in .h files.
|
|
|
if ($realfile =~ /\.h$/ &&
|
|
|
$line =~ /^\+\s*(extern\s+)$Type\s*$Ident\s*\(/s) {
|
|
|
- if (WARN("AVOID_EXTERNS",
|
|
|
- "extern prototypes should be avoided in .h files\n" . $herecurr) &&
|
|
|
+ if (CHK("AVOID_EXTERNS",
|
|
|
+ "extern prototypes should be avoided in .h files\n" . $herecurr) &&
|
|
|
$fix) {
|
|
|
$fixed[$linenr - 1] =~ s/(.*)\bextern\b\s*(.*)/$1$2/;
|
|
|
}
|