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 Remove the "too many arguments for fo...



details:   https://anonhg.NetBSD.org/src/rev/cc33f7f2ace4
branches:  trunk
changeset: 503115:cc33f7f2ace4
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Jan 31 19:55:23 2001 +0000

description:
Remove the "too many arguments for format" warning until the next major
release of gcc, which handles this more cleanly.

diffstat:

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

diffs (12 lines):

diff -r e86a3c83a29c -r cc33f7f2ace4 gnu/dist/toolchain/gcc/c-common.c
--- a/gnu/dist/toolchain/gcc/c-common.c Wed Jan 31 19:52:09 2001 +0000
+++ b/gnu/dist/toolchain/gcc/c-common.c Wed Jan 31 19:55:23 2001 +0000
@@ -1432,8 +1432,6 @@
        {
          if (format_chars - TREE_STRING_POINTER (format_tree) != format_length)
            warning ("embedded `\\0' in format");
-         if (info->first_arg_num != 0 && params != 0 && ! has_operand_number)
-           warning ("too many arguments for format");
          return;
        }
       if (*format_chars++ != '%')



Home | Main Index | Thread Index | Old Index