summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2002-05-18 18:53:44 +0000
committerthorpej <thorpej@NetBSD.org>2002-05-18 18:53:44 +0000
commitcfbb24ed86fb868540076ce58411dca3968e532e (patch)
tree5e5e82925c940bf5ae9884fa7f23bcd86dff9d1a /gnu
parent314ef13c23c1f81087b78b6318f4fa705888c2e9 (diff)
Add a -Wno-format-zero-length switch that does nothing, for forward
compatibility with GCC 3.2.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/toolchain/gcc/c-decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/dist/toolchain/gcc/c-decl.c b/gnu/dist/toolchain/gcc/c-decl.c
index 77afea47eec..d9a089095ae 100644
--- a/gnu/dist/toolchain/gcc/c-decl.c
+++ b/gnu/dist/toolchain/gcc/c-decl.c
@@ -815,6 +815,8 @@ c_decode_option (argc, argv)
{ /* XXX: NetBSD compatibility until next gcc release */ }
else if (!strcmp (p, "-Wno-format-extra-args"))
{ /* XXX: NetBSD compatibility until next gcc release */ }
+ else if (!strcmp (p, "-Wno-format-zero-length"))
+ { /* XXX: NetBSD compatibility until GCC 3.2 */ }
else if (!strcmp (p, "-Wno-format"))
warn_format = 0;
else if (!strcmp (p, "-Wchar-subscripts"))