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