This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: `%y' yields only last 2 digits of year
- From: dewar at gnat dot com (Robert Dewar)
- To: aoliva at redhat dot com, dewar at gnat dot com
- Cc: clock at atrey dot karlin dot mff dot cuni dot cz, fw at deneb dot enyo dot de,gcc at gcc dot gnu dot org, matzmich at cs dot tu-berlin dot de, schwab at suse dot de
- Date: Fri, 15 Mar 2002 00:20:22 -0500 (EST)
- Subject: Re: warning: `%y' yields only last 2 digits of year
<<Just consider for a moment that, after seeing the 19%y example in the
docs, the user might think that the sequence 19%y is handled
especially, and will actually print the full year. It's amazing how
people's imaginations sometimes fly :-)
>>
But then if you imagine people being this far out to lunch, you will start
to generate all kinds of warnings about imagined incompetence :-)
For instance, unconditionally warning when a switch branch does not
end with a break, or warning that an if is missing an else part.