perl: silence warning about skipping dropped features
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 29 Oct 2023 00:49:49 +0000 (02:49 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Sun, 29 Oct 2023 01:42:08 +0000 (02:42 +0100)
"Exiting subroutine via next" since commit v1.13-84-g7d20f0f116 (2023-05-30)
[perl: move feature attributes formatting].

perl.plp

index 1699d9b64c5bdabb44efc2174e9f922c70a6ba38..0d9a415a7b3edbb86fb67f3f93a2316a6c9a2296 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -111,7 +111,7 @@ sub featattrs ($attr) {
                $title = 'experimental';
        }
        if (defined $attr->{dropped}) {
-               next unless exists $get{v};
+               return '' unless exists $get{v};
                $title = sprintf 'removed in %vd', $_ for $attr->{dropped} || ();
        }
        elsif ($attr->{stable}) {