]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
warn: avoid "only used once" warning for subsecond_mtime.
authorKarl Berry <karl@freefriends.org>
Sun, 24 Dec 2023 16:45:50 +0000 (08:45 -0800)
committerKarl Berry <karl@freefriends.org>
Sun, 24 Dec 2023 16:45:50 +0000 (08:45 -0800)
* bin/automake.in (version): uselessly use
$Automake::FileUtils::subsecond_mtime a second time to
avoid Perl warning.

bin/automake.in

index 26c9f46b192c1779915b84d20af4b28df0fee699..3d6567ca3b9c864d076cd50cd6e515c45b6e9011 100644 (file)
@@ -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