public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23267] New: strftime options generate spurious warnings
@ 2005-08-07 0:06 cmattair at pdq dot net
2005-08-07 0:16 ` [Bug c/23267] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: cmattair at pdq dot net @ 2005-08-07 0:06 UTC (permalink / raw)
To: gcc-bugs
When I specify -Wall, certain strftime options generate spurious warning messages.
Specifically, %D and %y generate the following warnings:
warning: `%y' yields only last 2 digits of year
warning: `%D' yields only last 2 digits of year
This is the documented behaviour of these options so the warning seems a little
out of place. Equivalently, you should warn me that
warning: sin() does not generate the cosine.
These warnings should be removed or replaced with
warning: GNU expects you to display four digit years
--
Summary: strftime options generate spurious warnings
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cmattair at pdq dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23267
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/23267] strftime options generate spurious warnings
2005-08-07 0:06 [Bug c/23267] New: strftime options generate spurious warnings cmattair at pdq dot net
@ 2005-08-07 0:16 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 0:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-07 00:16 -------
No, this is a Y2K issue rather than anything else.
Anyways this was fixed in 3.4.0 by not having -Wformat-y2k enabled with -Wall.
*** This bug has been marked as a duplicate of 3190 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23267
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-07 0:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-07 0:06 [Bug c/23267] New: strftime options generate spurious warnings cmattair at pdq dot net
2005-08-07 0:16 ` [Bug c/23267] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).