summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/flags.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-24 06:33:52 +0000
committerbde <bde@FreeBSD.org>1998-08-24 06:33:52 +0000
commitf0825df2782f486722ece766eb1442debffcfc7c (patch)
tree2c0b7085e4925b2a1773ce56247a6c51a8cb7808 /contrib/gcc/flags.h
parent4ce525c0fd15056ead6463b1dcd8b5a242506b71 (diff)
downloadFreeBSD-src-f0825df2782f486722ece766eb1442debffcfc7c.zip
FreeBSD-src-f0825df2782f486722ece766eb1442debffcfc7c.tar.gz
Support printf format checking of FreeBSD kernel formats %[Dbrz].
This is enabled by the undocumented option -fformat-extensions. This option should be named better and/or give more control over the extensions. Fixed a message - don't warn about the field width when it's the precision that has the wrong type. Didn't fix excessive checking for the precision relative to the type - ANSI requires both to be ints, but gcc permits the field width to be either int or unsigned int.
Diffstat (limited to 'contrib/gcc/flags.h')
-rw-r--r--contrib/gcc/flags.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/flags.h b/contrib/gcc/flags.h
index ed1cf57..3538549 100644
--- a/contrib/gcc/flags.h
+++ b/contrib/gcc/flags.h
@@ -338,6 +338,10 @@ extern int flag_gnu_linker;
/* Tag all structures with __attribute__(packed) */
extern int flag_pack_struct;
+
+/* Nonzero means that -Wformat accepts certain non-ANSI formats. */
+
+extern int flag_format_extensions;
/* Other basic status info about current function. */
OpenPOWER on IntegriCloud