From 340500cc9533cfe9ccae08f049502aefa7534b4c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 3 Jul 2018 11:47:31 +0530 Subject: checkpatch.pl: fix the perl warning Used to get the below warning: ` Running coding guidelines check ... Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/^(\+.*(?:do|\))){ <-- HERE / at ./build-aux/checkpatch.pl line 3102. ` But as per the recommendation in perl document, we should escape the braces. While this check should be removed from the codebase when we get the 'codingstandard' automated scripts, we can keep the code warning free at least till then. updates: bz#1193929 Change-Id: I236a428174b5d16ca41baa03e96bc7aa26177b5b Signed-off-by: Amar Tumballi --- build-aux/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build-aux') diff --git a/build-aux/checkpatch.pl b/build-aux/checkpatch.pl index 205567307b1..17ae4e4d579 100755 --- a/build-aux/checkpatch.pl +++ b/build-aux/checkpatch.pl @@ -3099,7 +3099,7 @@ sub process { if (ERROR("SPACING", "space required before the open brace '{'\n" . $herecurr) && $fix) { - $fixed[$linenr - 1] =~ s/^(\+.*(?:do|\))){/$1 {/; + $fixed[$linenr - 1] =~ s/^(\+.*(?:do|\)))\{/$1 {/; } } -- cgit