diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2000-11-27 01:12:33 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-11-27 01:12:33 +0000 |
| commit | 339e20ffc25a5ee0b4feeae504dc11659aa03b5b (patch) | |
| tree | 8e364bb454769420dda005192da8eab6ecb2ed87 /lang/gcc295/files/patch-fc | |
| parent | Update to 5.6.0 - a fetchmail 'gold release' which fixes two minor bugs (diff) | |
Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.
Submitted by: kris
Obtained from: NetBSD
Diffstat (limited to 'lang/gcc295/files/patch-fc')
| -rw-r--r-- | lang/gcc295/files/patch-fc | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lang/gcc295/files/patch-fc b/lang/gcc295/files/patch-fc index a3f44c5e158b..081cdcbabc52 100644 --- a/lang/gcc295/files/patch-fc +++ b/lang/gcc295/files/patch-fc @@ -1,6 +1,6 @@ ---- gcc/toplev.c.orig Mon Mar 22 15:23:26 1999 -+++ gcc/toplev.c Tue Mar 30 13:13:44 1999 -@@ -754,6 +754,9 @@ +--- gcc/toplev.c.orig Thu Oct 21 00:01:37 1999 ++++ gcc/toplev.c Sun Nov 26 15:25:45 2000 +@@ -771,6 +771,9 @@ int flag_no_ident = 0; @@ -10,7 +10,7 @@ /* Table of supported debugging formats. */ static struct { -@@ -954,6 +957,8 @@ +@@ -971,6 +974,8 @@ "Generate code to check every memory access" }, {"prefix-function-name", &flag_prefix_function_name, 1, "Add a prefix to all function names" }, @@ -19,3 +19,13 @@ {"dump-unnumbered", &flag_dump_unnumbered, 1, "Suppress output of instruction numbers and line number notes in debugging dumps"}, {"instrument-functions", &flag_instrument_function_entry_exit, 1, +@@ -1051,7 +1056,9 @@ + { "-Wconversion", "Warn about possibly confusing type conversions" }, + { "-Wno-conversion", "" }, + { "-Wformat", "Warn about printf format anomalies" }, ++ { "-Wnon-const-format", "Warn about printf-like format strings" }, + { "-Wno-format", "" }, ++ { "-Wno-format-extra-args", "" }, + { "-Wimplicit-function-declaration", + "Warn about implicit function declarations" }, + { "-Wno-implicit-function-declaration", "" }, |
