[Top][All Lists]
[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: |
Paul Eggert |
Subject: |
Re: warning: comparison is always false due to limited range of data type |
Date: |
Tue, 21 Jun 2005 23:56:25 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> "Oskar Liljeblad" <address@hidden> wrote:
>> What's the proper way to fix these warnings?
>>
>> quotearg.c: In function `quotearg_n_options':
>> quotearg.c:586: warning: comparison is always false due to limited range of
>> data type
>
> Paul, if you don't find a way to eliminate the warning by changing
> xalloc_oversized itself (I didn't), how about using this change?
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. Is there some easy way to ask GCC to not generate
that warning?
- warning: comparison is always false due to limited range of data type, Oskar Liljeblad, 2005/06/20
- Re: warning: comparison is always false due to limited range of data type, Jim Meyering, 2005/06/21
- Re: warning: comparison is always false due to limited range of data type,
Paul Eggert <=
- Re: warning: comparison is always false due to limited range of data type, Jim Meyering, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Oskar Liljeblad, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Jim Meyering, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Oskar Liljeblad, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Jim Meyering, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Jim Meyering, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Paul Eggert, 2005/06/22
- Re: warning: comparison is always false due to limited range of data type, Jim Meyering, 2005/06/23