Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/toolchain/gcc Merge from gnu/dist:



details:   https://anonhg.NetBSD.org/src/rev/6b4d3768ecd0
branches:  trunk
changeset: 503117:6b4d3768ecd0
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Jan 31 19:58:32 2001 +0000

description:
Merge from gnu/dist:
Make the null printf format string warning enabled only if -pedantic is
supplied.  This allows printf format attributes on err/warn.  A fix to handle
this properly is in the works for the next major gcc release.

diffstat:

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

diffs (13 lines):

diff -r 9871af182c79 -r 6b4d3768ecd0 gnu/dist/toolchain/gcc/c-common.c
--- a/gnu/dist/toolchain/gcc/c-common.c Wed Jan 31 19:56:28 2001 +0000
+++ b/gnu/dist/toolchain/gcc/c-common.c Wed Jan 31 19:58:32 2001 +0000
@@ -1398,7 +1398,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