Skip to content

Commit 5646bc7

Browse files
JoePerchestorvalds
authored andcommitted
checkpatch: warn on space before semicolon
Make space before semicolon a warning instead of a --strict CHK test. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 04db4d2 commit 5646bc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/checkpatch.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2522,8 +2522,8 @@ sub process {
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.

0 commit comments

Comments
 (0)