From 9ab5c03edcdb84b4f7bb68f19cb7cc028ff647f2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 24 Dec 2023 08:45:50 -0800 Subject: [PATCH] warn: avoid "only used once" warning for subsecond_mtime. * bin/automake.in (version): uselessly use $Automake::FileUtils::subsecond_mtime a second time to avoid Perl warning. --- bin/automake.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/automake.in b/bin/automake.in index 26c9f46b1..3d6567ca3 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -8275,7 +8275,8 @@ sub version () { print "automake (GNU $PACKAGE) $VERSION\n"; print "Features: subsecond-mtime\n" - if $Automake::FileUtils::subsecond_mtime; + if $Automake::FileUtils::subsecond_mtime + && $Automake::FileUtils::subsecond_mtime; # avoid "once" warning print "\nCopyright (C) $RELEASE_YEAR Free Software Foundation, Inc."; print ' License GPLv2+: GNU GPL version 2 or later -- 2.47.3