diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-07-24 00:28:37 +0930 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2018-07-24 12:23:43 +0930 |
commit | 3b14356fa0a23521b65b2885fa7704065fa884c1 (patch) | |
tree | ca36914ac0f301f9a52ab0f58a512f32f3907c5f | |
parent | 83cbc3edfcc3f91c4fb8f6ac3239bb54df31872d (diff) | |
download | talos-obmc-uboot-3b14356fa0a23521b65b2885fa7704065fa884c1.tar.gz talos-obmc-uboot-3b14356fa0a23521b65b2885fa7704065fa884c1.zip |
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>
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 24831b3166..d38369638c 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 {/; } } |