[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
Re: warning: comparison is always false due to limited range of data type
Wed, 22 Jun 2005 13:14:29 +0200
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.
Oskar Liljeblad (address@hidden)