This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: signed vs unsigned comparison warnings
- To: law at cygnus dot com
- Subject: Re: signed vs unsigned comparison warnings
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 20 Jun 2000 14:38:36 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org, zack at wolery dot cumb dot org
> From: Jeffrey A Law <law@cygnus.com>
> >
> > :-)
> >
> > IMHO warning `noise' tends to make everyone ignore the serious ones.
> > We should try to reduce noise if possible. Its a constant battle...
>
> One note here.
>
> I'm not aware of a single bug fixed by the boatloads of changes to
> eliminate signed vs unsigned comparison warnings. Yet there have been
> several bugs introduced by those "fixes".
>
> As a result, I think it is in our best interest to not try and "fix"
> such warnings and instead turn off the warnings on the command line.
> We've got bigger fish to fry IMHO.
>
> jeff
I don't have a strong opinion either way.
One note, if someone want to use -Wno-sign-compare they should
probably add configure code to check whether stage1 gcc supports it
like we do for -Wno-long-long. (I forget in which version of gcc it
was introduced)
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions