This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: signed vs unsigned comparison warnings


 > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]