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: Geoff Keating <geoffk at geoffk dot org>
- To: Karel Kulhavy <clock at atrey dot karlin dot mff dot cuni dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: 12 Mar 2002 13:05:26 -0800
- Subject: Re: warning: `%y' yields only last 2 digits of year
- References: <20020312225442.A329@beton.cybernet.cz>
Karel Kulhavy <clock@atrey.karlin.mff.cuni.cz> writes:
> 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.
You can use -Wno-format-y2k to disable this warning. I hope the name
of the option will help to explain why the warning exists.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>