Re: [PATCH] disable gcc warnings of sign/unsigned comparison

From: Paul Jackson
Date: Thu Jan 01 2004 - 22:09:10 EST


Andi wrote:
> That was a bug in gcc 3.3.0. It had the -Wsign-compare warning
> enabled in -Wall by mistake.

Correct. Even what is now downloadable as:

ftp://ftp.gnu.org/gnu/gcc/gcc-3.3

seems to have this fixed, and has a gcc/cp/NEWS file entry stating:

+ -Wall no longer implies -W. The new warning flag, -Wsign-compare,
included in -Wall, warns about dangerous comparisons of signed and
unsigned values. Only the flag is new; it was previously part of
-W.

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/