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: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Karel Kulhavy <clock at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 16:06:19 -0500
- Subject: Re: warning: `%y' yields only last 2 digits of year
This is here because of the y2k bug.
The warnings you mention do not happen all the time while this one does.
Thanks,
Andrew Pinski
On Tuesday, March 12, 2002, at 04:54 , Karel Kulhavy wrote:
> Hello
>
> Please note that warning
>
> "warning: `%y' yields only last 2 digits of year"
>
> is absolutely stupid and according to my opinion should be immediately
> removed.
> It is clearly stated in manpage that %y yields only 0-99. It is not
> necessary
> to attach random pieces of manpages into gcc's output, no matter how the
> manpages are relevant to the code being compiled.
>
> If you want to keep this idiotic warning, then please introduce
> also these warnings:
> "warning: '=' yields segfault when left side is NULL"
> "warning: '++' yields 13 when applied on 12"
> "warning: 'printf()' yields buffer overflow when arg 1 is too long"
>
> Thank you.
>
> --
> Karel 'Clock' Kulhavy
>
>