Source-Changes-HG archive

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

[src/netbsd-1-4]: src/gnu/dist/gcc Pull up revision 1.7 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/29cb421ee1e6
branches:  netbsd-1-4
changeset: 471003:29cb421ee1e6
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 11 18:41:27 2000 +0000

description:
Pull up revision 1.7 (requested by he):
  Allow NULL format strings except under pedantic checking,
  so that we may check the err() formats.

diffstat:

 gnu/dist/gcc/c-common.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r be14f299c4bd -r 29cb421ee1e6 gnu/dist/gcc/c-common.c
--- a/gnu/dist/gcc/c-common.c   Wed Oct 11 18:39:57 2000 +0000
+++ b/gnu/dist/gcc/c-common.c   Wed Oct 11 18:41:27 2000 +0000
@@ -1334,7 +1334,8 @@
 
   if (integer_zerop (format_tree))
     {
-      warning ("null format string");
+      if (pedantic)
+        warning ("null format string");
       return;
     }
   if (TREE_CODE (format_tree) != ADDR_EXPR)



Home | Main Index | Thread Index | Old Index