]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
automake: avoid precedence error when using Perl 5.41+.
authorCollin Funk <collin.funk1@gmail.com>
Thu, 30 Jan 2025 23:34:52 +0000 (15:34 -0800)
committerKarl Berry <karl@freefriends.org>
Thu, 30 Jan 2025 23:34:52 +0000 (15:34 -0800)
Reported by Igor Todorovski <itodorov@ca.ibm.com> in
<https://lists.gnu.org/archive/html/automake/2025-01/msg00000.html>.

* bin/automake.in (transform): Parentheses the '!' operators so
Perl 5.41.8 doesn't warn about "possible precedence problem".

bin/automake.in

index 5d3e7c7666845cc6814e395a20794e2fcd04eb51..a3b74f4859a091ce652a06e2656acb72983242c2 100644 (file)
@@ -6871,7 +6871,7 @@ sub transform ($\%)
     {
       my $neg = ($1 eq '!') ? 1 : 0;
       my $val = transform_token ($token, %$transform, $2);
-      return (!!$val == $neg) ? '##%' : '';
+      return ((!!$val) == $neg) ? '##%' : '';
     }
   else
     {