Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/gnu/dist/gcc Pullup 1.7 and 1.8 [releng]:
details: https://anonhg.NetBSD.org/src/rev/f3647982a38c
branches: netbsd-1-5
changeset: 489785:f3647982a38c
user: tv <tv%NetBSD.org@localhost>
date: Tue Oct 17 14:55:27 2000 +0000
description:
Pullup 1.7 and 1.8 [releng]:
Support for stricter format checks (needed for format string pullups).
diffstat:
gnu/dist/gcc/c-decl.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 56fb6a47597f -r f3647982a38c gnu/dist/gcc/c-decl.c
--- a/gnu/dist/gcc/c-decl.c Tue Oct 17 14:55:13 2000 +0000
+++ b/gnu/dist/gcc/c-decl.c Tue Oct 17 14:55:27 2000 +0000
@@ -552,6 +552,7 @@
int warn_format;
int warn_format_y2k;
+int warn_format_extra_args;
/* Warn about a subscript that has type char. */
@@ -753,10 +754,14 @@
warn_traditional = 1;
else if (!strcmp (p, "-Wno-traditional"))
warn_traditional = 0;
+ else if (!strcmp (p, "-Wnetbsd-format-audit"))
+ warn_format = 2;
else if (!strcmp (p, "-Wformat"))
- warn_format = warn_format_y2k = 1;
+ warn_format = warn_format_y2k = warn_format_extra_args = 1;
else if (!strcmp (p, "-Wno-format"))
warn_format = warn_format_y2k = 0;
+ else if (!strcmp (p, "-Wno-format-extra-args"))
+ warn_format_extra_args = 0;
else if (!strcmp (p, "-Wno-format-y2k"))
warn_format_y2k = 0;
else if (!strcmp (p, "-Wchar-subscripts"))
Home |
Main Index |
Thread Index |
Old Index