automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: warn: avoid "only used once" wa


From: Karl Berry
Subject: [automake-commit] branch master updated: warn: avoid "only used once" warning for subsecond_mtime.
Date: Sun, 24 Dec 2023 11:46:00 -0500

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=9ab5c03edcdb84b4f7bb68f19cb7cc028ff647f2

The following commit(s) were added to refs/heads/master by this push:
     new 9ab5c03ed warn: avoid "only used once" warning for subsecond_mtime.
9ab5c03ed is described below

commit 9ab5c03edcdb84b4f7bb68f19cb7cc028ff647f2
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Sun Dec 24 08:45:50 2023 -0800

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]