History

checkpatch: warn on space before semicolon

Make space before semicolon a warning instead of a --strict CHK test.

Joe Perches committed 13 years ago

Commit 5646bc71 parent 04db4d21 file · +2 −2Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+2−2
@@ -2522,8 +2522,8 @@ sub process { · 2521 unmodified lines
25222522
25232523 # check for whitespace before a non-naked semicolon
25242524 if ($line =~ /^\+.*\S\s+;/) {
2525− CHK("SPACING",
2526− "space prohibited before semicolon\n" . $herecurr);
2525+ WARN("SPACING",
2526+ "space prohibited before semicolon\n" . $herecurr);
25272527 }
25282528
25292529 # Check operator spacing.