summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-07-24 00:28:37 +0930
committerJoel Stanley <joel@jms.id.au>2018-07-24 12:23:43 +0930
commit3b14356fa0a23521b65b2885fa7704065fa884c1 (patch)
treeca36914ac0f301f9a52ab0f58a512f32f3907c5f /scripts
parent83cbc3edfcc3f91c4fb8f6ac3239bb54df31872d (diff)
downloadtalos-obmc-uboot-3b14356fa0a23521b65b2885fa7704065fa884c1.zip
talos-obmc-uboot-3b14356fa0a23521b65b2885fa7704065fa884c1.tar.gz
checkpatch: Fix unescaped brace warning
Running checkpatch using Ubuntu 18.04's packaged perl (5.26.1-6ubuntu0.1) gave the following output: 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 ./scripts/checkpatch.pl line 3267 Escape the brace to avoid the warning. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 24831b3..d383696 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3264,7 +3264,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 {/;
}
}
OpenPOWER on IntegriCloud