diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2003-11-08 22:42:00 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2003-11-08 22:42:00 +0000 |
commit | c76f4e8ef47f7d4fea47af7a39edf1aae00ac977 (patch) | |
tree | df325b6a6238adce3bba6e07586901745bcd5ec3 /gcc/c-format.c | |
parent | 41d3a0c3d88fc5e7ca705b436f08c5689a05d996 (diff) | |
download | gcc-c76f4e8ef47f7d4fea47af7a39edf1aae00ac977.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c index 82fb593f440..269be1795db 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) |