This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada files now checked in
- To: dewar at gnat dot com
- Subject: Re: Ada files now checked in
- From: Zack Weinberg <zack at codesourcery dot com>
- Date: Sat, 6 Oct 2001 09:33:41 -0700
- Cc: bosch at gnat dot com, gcc at gcc dot gnu dot org, kenner at vlsi1 dot ultra dot nyu dot edu
- References: <20011006151029.9674DF28AE@nile.gnat.com>
On Sat, Oct 06, 2001 at 11:10:29AM -0400, dewar@gnat.com wrote:
> Only -W and -Wall would be relevant, -Wwrite-strings has no meaning
> for Ada. We do in fact try to keep the sources warning free (*) so
> this is perfectly reasonable.
Okay, I will revise the patch to include -W and -Wall in the
appropriate position.
> (*) I must say I find the warnings in this area from gcc to be awful. To
> be told that somewhere in a procedure there is a suspicious use of a
> particular variable, but not to have this particular use pointed out
> is quite annoying, given that
>
> a) the compiler really could know the specific case
> b) 95% of the time these warnings are wrong, and so you are not looking for
> a suspicious use, but one that the compiler thinks is suspicious.
Completely agreed, and there is work in progress to improve these
warnings.
zw