This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning: comparison is always true due to limited range of data type
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: "Marcin 'Qrczak' Kowalczyk" <qrczak at knm dot org dot pl>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Jan 2006 14:29:47 -0600
- Subject: Re: warning: comparison is always true due to limited range of data type
- References: <87fynhs5p4.fsf@qrnik.zagroda>
Marcin 'Qrczak' Kowalczyk <qrczak@knm.org.pl> writes:
| Hello.
|
| There was a discussion about this warning about a year ago, but it
| seems to have been forgotten without a resolution.
|
| This warning is issued unconditionally, impossible to disable, hard
| to work around, and it depends on integer sizes even when the code
| is portable.
|
| I think it should be removed altogether, or at least disabled by
| default, or at least possible to disable.
See -Walways-true.
-- Gaby