aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2025-03-15 17:41:54 -0400
committerAndrew Dunstan <andrew@dunslane.net>2025-03-15 17:41:54 -0400
commit5eabd91a83adae75f53b61857343660919fef4c7 (patch)
tree71ebffa0da30f6bdd5bc568804a4647184591202
parent27bdec06841d1bb004ca7627eac97808b08a7ac7 (diff)
downloadpostgresql-5eabd91a83adae75f53b61857343660919fef4c7.tar.gz
postgresql-5eabd91a83adae75f53b61857343660919fef4c7.zip
Silence perl critic
Commit 27bdec06841 uses a loop variable that is not strictly local to the loop. Perlcritic disapproves, and there's really no reason as the variable is not used outside the loop. Per buildfarm animals koel and crake.
-rw-r--r--src/common/unicode/generate-unicode_case_table.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/unicode/generate-unicode_case_table.pl b/src/common/unicode/generate-unicode_case_table.pl
index 3c2edc7ca4d..ddd0980719b 100644
--- a/src/common/unicode/generate-unicode_case_table.pl
+++ b/src/common/unicode/generate-unicode_case_table.pl
@@ -619,7 +619,7 @@ sub branch
sub make_ranges
{
my ($nums, $limit) = @_;
- my ($prev, $start, $curr, $total, @sorted, @range);
+ my ($prev, $start, $total, @sorted, @range);
@sorted = sort { $a <=> $b } @$nums;
@@ -635,7 +635,7 @@ sub make_ranges
# append final 'undef' to signal final iteration
push @sorted, undef;
- foreach $curr (@sorted)
+ foreach my $curr (@sorted)
{
# if last iteration always append the range
if (!defined($curr) || ($curr - $prev > $limit))