This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/3190: -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jsm28 at cam dot ac dot uk, jsm28 at gcc dot gnu dot org, nobody at gcc dot gnu dot org, proski at gnu dot org
- Subject: Re: c/3190: -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
- From: jsm28 at gcc dot gnu dot org
- Date: 15 Jun 2001 19:09:21 -0000
Synopsis: -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
Responsible-Changed-From-To: unassigned->jsm28
Responsible-Changed-By: jsm28
Responsible-Changed-When: Fri Jun 15 12:09:21 2001
Responsible-Changed-Why:
Mine once the appropriate solution is worked out.
State-Changed-From-To: open->analyzed
State-Changed-By: jsm28
State-Changed-When: Fri Jun 15 12:09:21 2001
State-Changed-Why:
There are three separate cases here:
* Those that use 2-digit years in all locales (%D, %g, %y).
* Those that use 2-digit years in some locales, depending
on the system (%c, %x).
* Those that use 2-digit years in some locales, including
the C locale (%Ey).
I think at least the first of these does belong in -Wall
(those formats don't depend on locale, so if you really
want 2-digit years you can emulate them within ISO C).
I'll await comments from the maintainers of NetBSD's GCC
(which is where the option -Wno-format-y2k originated)
as I think they have wanted to remove the Y2K warnings from
-Wall as well.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3190&database=gcc