This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23267] New: strftime options generate spurious warnings
- From: "cmattair at pdq dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2005 00:05:59 -0000
- Subject: [Bug c/23267] New: strftime options generate spurious warnings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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