summaryrefslogtreecommitdiff
path: root/lang/gcc295/files/patch-decl2.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-11-27 01:12:33 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-11-27 01:12:33 +0000
commit339e20ffc25a5ee0b4feeae504dc11659aa03b5b (patch)
tree8e364bb454769420dda005192da8eab6ecb2ed87 /lang/gcc295/files/patch-decl2.c
parentUpdate 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-decl2.c')
-rw-r--r--lang/gcc295/files/patch-decl2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/gcc295/files/patch-decl2.c b/lang/gcc295/files/patch-decl2.c
new file mode 100644
index 000000000000..701f98f2b772
--- /dev/null
+++ b/lang/gcc295/files/patch-decl2.c
@@ -0,0 +1,10 @@
+--- gcc/cp/decl2.c.orig Thu Aug 19 16:29:45 1999
++++ gcc/cp/decl2.c Sun Nov 26 15:21:44 2000
+@@ -281,6 +281,7 @@
+ /* Warn about *printf or *scanf format/argument anomalies. */
+
+ int warn_format;
++int warn_format_extra_args = 1;
+
+ /* Warn about a subscript that has type char. */
+