Make space before semicolon a warning instead of a --strict CHK test.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -2522,8 +2522,8 @@ sub process { · 2521 unmodified lines | |||
| 2522 | 2522 | ||
| 2523 | # check for whitespace before a non-naked semicolon | 2523 | # check for whitespace before a non-naked semicolon |
| 2524 | if ($line =~ /^\+.*\S\s+;/) { | 2524 | if ($line =~ /^\+.*\S\s+;/) { |
| 2525 | CHK("SPACING", | 2525 | WARN("SPACING", |
| 2526 | "space prohibited before semicolon\n" . $herecurr); | 2526 | "space prohibited before semicolon\n" . $herecurr); |
| 2527 | } | 2527 | } |
| 2528 | 2528 | ||
| 2529 | # Check operator spacing. | 2529 | # Check operator spacing. |