This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: c/3190 Re: warning: `%y' yields only last 2 digits of year
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: jsm28 at cam dot ac dot uk (Joseph S. Myers)
- Cc: dewar at gnat dot com (Robert Dewar), clock at atrey dot karlin dot mff dot cuni dot cz,geoffk at geoffk dot org, gcc at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 14:50:41 -0800 (PST)
- Subject: Re: c/3190 Re: warning: `%y' yields only last 2 digits of year
> It's a style warning, as with many other GCC warnings. It's of use if you
> consider that wanting to output 2-digit years is unusual and a bad idea.
Such things clearly don't belong in -Wall, especially since there are
situations where a two-digit year is required by the specification.