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: Tom Lord <lord at emf dot net>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 14:22:06 -0800 (PST)
- Subject: Re: warning: `%y' yields only last 2 digits of year
- References: <20020312214749.187F5F2DA8@nile.gnat.com>
What a silly warning, and what an even sillier option. I sure
agree with Karel on this one, to whom could such a warning
possibly be useful?
A more common example that's recently been reported to me by a GCC
user says:
cast to pointer from integer of different size
and that's apparently without even "-Wall". The code in question
is an _explicit_ cast: "x = (void *)y".
How about something like "-Wcommon-mistakes" which produces a set of
warnings larger in scope than "-Wall"? The property "builds cleanly
with -Wall" used to useful.
It'd also be nice if GCC knew enough about `size_t' to generate size-related
warnings even on platforms where they don't occur.
-t