slackware-current/source/ap/stow/79bb69177d5966badee7b453c1e8c652aeddefc6.patch

36 lines
929 B
Diff
Raw Normal View History

From 79bb69177d5966badee7b453c1e8c652aeddefc6 Mon Sep 17 00:00:00 2001
From: Wolfgang Frisch <wolfgang.frisch@suse.com>
Date: Thu, 11 Jul 2024 09:48:46 +0200
Subject: avoid precedence warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Perl 5.40.0 extended the scope of the precedence warning to include
ternary operators.
<https://perldoc.perl.org/5.40.0/perldelta>
Reported-By: Peter Sütterlin <P.Suetterlin@royac.iac.es>
---
bin/stow.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/stow.in b/bin/stow.in
index 5e4da93..8254d2d 100755
--- a/bin/stow.in
+++ b/bin/stow.in
@@ -837,7 +837,7 @@ Report bugs to: bug-stow\@gnu.org
Stow home page: <http://www.gnu.org/software/stow/>
General help using GNU software: <http://www.gnu.org/gethelp/>
EOT
- exit defined $msg ? 1 : 0;
+ exit (defined $msg ? 1 : 0);
}
sub version {
--
cgit v1.1