summaryrefslogtreecommitdiffstats
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-08 22:42:00 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-08 22:42:00 +0000
commitaf35025ec4d98b7d6771d2edee31a98028bd2efe (patch)
treedf325b6a6238adce3bba6e07586901745bcd5ec3 /gcc/c-format.c
parent2ee8eb6da7bae06c000df1fea44b2007d0fccff7 (diff)
downloadppe42-gcc-af35025ec4d98b7d6771d2edee31a98028bd2efe.tar.gz
ppe42-gcc-af35025ec4d98b7d6771d2edee31a98028bd2efe.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73378 138bc75d-0d04-0410-961f-82ee72b054a4
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 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)
OpenPOWER on IntegriCloud