freebsd-ports/lang/gcc295/files/patch-decl2.c
David E. O'Brien 339e20ffc2 Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

Submitted by:	kris
Obtained from:	NetBSD
2000-11-27 01:12:33 +00:00

11 lines
285 B
C

--- 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. */