Relaxing -Wsign-compare
Richard Henderson
rth@redhat.com
Thu Sep 20 16:37:00 GMT 2001
On Thu, Sep 20, 2001 at 07:41:45PM +0100, Neil Booth wrote:
> I think Kaveh has done some work on the compiler to improve this area
> in 3.1.
What Kaveh did was the other way around -- suppressing the
warning for
unsigned int i;
if (i < 6) ...
In this example "6" is signed int, and gets promoted to unsigned.
The examples Kaveh was working with were slightly more complicated. ;-)
r~
More information about the Gcc
mailing list