m4-commit
[Top][All Lists]
Advanced

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

[SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-3-gf


From: Eric Blake
Subject: [SCM] GNU M4 source repository branch, branch-1.4, updated. v1.4.16-3-gfb132bf
Date: Fri, 29 Apr 2011 21:56:08 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU M4 source repository".

http://git.sv.gnu.org/gitweb/?p=m4.git;a=commitdiff;h=fb132bf05f993b98f8bce6dc681dd34cacc40a39

The branch, branch-1.4 has been updated
       via  fb132bf05f993b98f8bce6dc681dd34cacc40a39 (commit)
      from  54cbf9d1800116c4b84125ff1c48be93e6d03587 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fb132bf05f993b98f8bce6dc681dd34cacc40a39
Author: Eric Blake <address@hidden>
Date:   Fri Apr 29 15:50:31 2011 -0600

    m4_defn: avoid compiler warning
    
    argc is an int, therefore by definition, it is <= INT_MAX.
    
    * src/builtin.c (m4_defn): Nuke redundant condition.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog     |    3 +++
 src/builtin.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 862b516..f007a5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-04-29  Eric Blake  <address@hidden>
 
+       m4_defn: avoid compiler warning
+       * src/builtin.c (m4_defn): Nuke redundant condition.
+
        m4_error: fix missing va_end
        * src/m4.c (m4_error, m4_error_at_line): Add missing va_end.
 
diff --git a/src/builtin.c b/src/builtin.c
index 632ef79..80f2024 100644
--- a/src/builtin.c
+++ b/src/builtin.c
@@ -894,7 +894,7 @@ m4_defn (struct obstack *obs, int argc, token_data **argv)
   if (bad_argc (argv[0], argc, 2, -1))
     return;
 
-  assert (0 < argc && argc <= INT_MAX);
+  assert (0 < argc);
   for (i = 1; i < (unsigned) argc; i++)
     {
       const char *arg = ARG((int) i);


hooks/post-receive
-- 
GNU M4 source repository



reply via email to

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