This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: signed vs unsigned comparison warnings
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: signed vs unsigned comparison warnings
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Tue, 20 Jun 2000 12:36:18 -0400
- Cc: law at cygnus dot com, gcc at gcc dot gnu dot org
- References: <10006201642.AA01025@vlsi1.ultra.nyu.edu>
On Sat, Jun 20, 1970 at 12:42:12PM -0400, Richard Kenner wrote:
> I'm not aware of a single bug fixed by the boatloads of changes to
> eliminate signed vs unsigned comparison warnings.
>
> I think I remember one ...
Compared to the bugs introduced by the wholesale conversion of things to
unsigned? I know I've certainly been bitten by the later in some ports.
> 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.
>
> Yes and no. These warnings tend to produce a more "strictly typed"
> program and that's a good thing from a cleanliness point of view. So
> there is *some* advantage, though I agree it's not very large.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482