Messages in this thread Patch in this message | | | Subject | checkpatch: Warn on space before semicolon | From | Joe Perches <> | Date | Mon, 08 Apr 2013 21:27:54 -0700 |
| |
Make space before semicolon a warning instead of a --strict CHK test.
Signed-off-by: Joe Perches <joe@perches.com> --- >> There's no specific CodingStyle violation here > Let's fix CodingStyle then?
I'll leave that bit for you... scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b28cc38..90eb022 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2514,8 +2514,8 @@ sub process { # check for whitespace before a non-naked semicolon if ($line =~ /^\+.*\S\s+;/) { - CHK("SPACING", - "space prohibited before semicolon\n" . $herecurr); + WARN("SPACING", + "space prohibited before semicolon\n" . $herecurr); } # Check operator spacing.
| |