bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning: comparison is always false due to limited range of data typ


From: Oskar Liljeblad
Subject: Re: warning: comparison is always false due to limited range of data type
Date: Wed, 22 Jun 2005 13:14:29 +0200
User-agent: Mutt/1.5.9i

On Wednesday, June 22, 2005 at 11:50, Jim Meyering wrote:
> > Isn't that a cure that is worse than the disease?  That patch will
> > slow down the code on his platform, by causing the compiler to insert
> > a run-time check where it now does the check at compile-time (and can
> > therefore omit the call to xalloc_die ()).
> >
> > My own experience is that that particular warning is more trouble
> > than it's worth.
> 
> I agree.
> Sometimes I forget and still type `-W -Wall', forgetting that this
> type of warning comes from using gcc's -W option.
> These days, I rarely use -W (and never use it with -Werror),
> for precisely that reason.

I get that warning without both -W and -Wall, I think.
(gcc 3.3.6)

Regards,

Oskar Liljeblad (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]