This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: comparison is always true due to limited range of data type


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]