From ea4e7bdc81a69aace3b9db00d2aea8a5048696b7 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sat, 2 Sep 2017 12:58:55 +0100 Subject: checksrc: disable SPACEBEFOREPAREN for case statement. The case keyword may be followed by a constant expression and thus should allow it to start with an open parenthesis. --- lib/checksrc.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 2eff3e0cf..b9fa9362f 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -345,6 +345,9 @@ sub scanfile { elsif($3 eq "return") { # return must have a space } + elsif($3 eq "case") { + # case must have a space + } elsif($4 eq "*") { # (* beginning makes the space OK! } -- cgit v1.2.3