m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/src/Attic/format.c,v [branch-1_4]


From: Eric Blake
Subject: Changes to m4/src/Attic/format.c,v [branch-1_4]
Date: Mon, 22 Oct 2007 16:38:35 +0000

CVSROOT:        /sources/m4
Module name:    m4
Branch:         branch-1_4
Changes by:     Eric Blake <ericb>      07/10/22 16:38:34

Index: src/format.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/format.c,v
retrieving revision 1.1.1.1.2.10
retrieving revision 1.1.1.1.2.11
diff -u -b -r1.1.1.1.2.10 -r1.1.1.1.2.11
--- src/format.c        4 Aug 2007 20:40:12 -0000       1.1.1.1.2.10
+++ src/format.c        22 Oct 2007 16:38:33 -0000      1.1.1.1.2.11
@@ -301,10 +301,14 @@
          abort();
        }
 
-      /* NULL was returned on failure, such as invalid format string.  For
-        now, just silently ignore that bad specifier.  */
+      /* NULL was returned on failure, such as invalid format string.
+        Issue a warning, then proceed.  */
       if (str == NULL)
+       {
+         M4ERROR ((warning_status, 0,
+                   "Warning: unable to format output for `%s'", f));
        continue;
+       }
 
       obstack_grow (obs, str, strlen (str));
       free (str);




reply via email to

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