This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: comparison is always true due to limited range of data type
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 7 Sep 2006 13:21:47 +1000
- Subject: Re: comparison is always true due to limited range of data type
- References: <87wt9b1wla.fsf@qrnik.zagroda>
On Mon, Aug 14, 2006 at 11:43:29AM +0200, Marcin 'Qrczak' Kowalczyk wrote:
> I was told in January that the "comparison is always true due to
> limited range of data type" warning has been guarded by
> -Walways-true in gcc-4.2.0. But it's still issued unconditionally in
> gcc-4.2.0-0.20060806r115974.
-Walways-true does handle some warnings in this way, but the warning you refer to is not one of them:
warning (0, "comparison is always true due to limited range of data type");
This could and should be fixed.
Cheers, Ben