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: clock at atrey dot karlin dot mff dot cuni dot cz, fw at deneb dot enyo dot de
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 13 Mar 2002 01:06:21 -0500 (EST)
- Subject: Re: warning: `%y' yields only last 2 digits of year
<<Hm, it probably should be modified to check if "%y" is preceded by
"19", which would be clearly a bug.
>>
Well I would not say that is a bug, for example if you are using sliding
windows for handling Y2K, it is perfectly reasonable that in one branch
you have 19%y and in the other 20%y. It would be quite annoying to get a
warning here. I think warnings should be about use of the language, not
about guesses as to what are or are not reasonable application decisions.