c/3190: -Wformat-y2k doesn't belong to -Wall - it's hard to avoid
jsm28@gcc.gnu.org
jsm28@gcc.gnu.org
Fri Jun 15 12:09:00 GMT 2001
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
More information about the Gcc-bugs
mailing list