aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2003-11-08 22:42:00 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2003-11-08 22:42:00 +0000
commitc76f4e8ef47f7d4fea47af7a39edf1aae00ac977 (patch)
treedf325b6a6238adce3bba6e07586901745bcd5ec3 /gcc/c-format.c
parent41d3a0c3d88fc5e7ca705b436f08c5689a05d996 (diff)
downloadgcc-c76f4e8ef47f7d4fea47af7a39edf1aae00ac977.zip
gcc-c76f4e8ef47f7d4fea47af7a39edf1aae00ac977.tar.gz
gcc-c76f4e8ef47f7d4fea47af7a39edf1aae00ac977.tar.bz2
re PR c/3190 (-Wformat-y2k doesn't belong to -Wall - it's hard to avoid)
PR c/3190 PR c/8714 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default. * invoke.texi: Update. testsuite: PR c/3190 PR c/8714 * gcc.dg/format/c90-strftime-1.c, gcc.dg/format/c90-strftime-2.c, gcc.dg/format/c99-strftime-1.c, gcc.dg/format/ext3.c, gcc.dg/format/no-y2k-1.c: Update. From-SVN: r73378
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r--gcc/c-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c
index 82fb593..269be17 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -37,13 +37,13 @@ void
set_Wformat (int setting)
{
warn_format = setting;
- warn_format_y2k = setting;
warn_format_extra_args = setting;
warn_format_zero_length = setting;
if (setting != 1)
{
warn_format_nonliteral = setting;
warn_format_security = setting;
+ warn_format_y2k = setting;
}
/* Make sure not to disable -Wnonnull if -Wformat=0 is specified. */
if (setting)