From: Karl Berry Date: Sun, 24 Dec 2023 16:45:50 +0000 (-0800) Subject: warn: avoid "only used once" warning for subsecond_mtime. X-Git-Tag: v1.16.90~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ab5c03edcdb84b4f7bb68f19cb7cc028ff647f2;p=thirdparty%2Fautomake.git 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. --- 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