From 0d2a81144c3e54547ec10f7577bc315985551edf Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 10 Jul 2019 22:22:07 -0600 Subject: [PATCH] devel/mktodo.pl: Move invariant expression out of loop (cherry picked from commit a513fe6f824d69d855753d04893a94692433a718) Signed-off-by: Nicolas R --- dist/Devel-PPPort/devel/mktodo.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dist/Devel-PPPort/devel/mktodo.pl b/dist/Devel-PPPort/devel/mktodo.pl index 32c284b..db6e719 100644 --- a/dist/Devel-PPPort/devel/mktodo.pl +++ b/dist/Devel-PPPort/devel/mktodo.pl @@ -338,10 +338,9 @@ sub find_undefined_symbols my @undefined; for my $sym (keys %$ls) { + next if $sym =~ /\@/ or $sym =~ /^_/ or exists $stdsym{$sym}; unless (exists $ps->{$sym}) { - if ($sym !~ /\@/ and $sym !~ /^_/) { - push @undefined, $sym unless $stdsym{$sym}; - } + push @undefined, $sym; } } -- 1.8.3.1