min/max and all that jazz

Duncan Sands (duncan.sands@math.u-psud.fr)
Wed, 19 Sep 2001 11:59:17 +0200


gcc has a warning option -Wsign-compare (not turned on by -Wall):

`-Wsign-compare'
Warn when a comparison between signed and unsigned values could
produce an incorrect result when the signed value is converted to
unsigned. This warning is also enabled by `-W'; to get the other
warnings of `-W' without this warning, use `-W -Wno-sign-compare'.

This might pick up some errors of the kind the new min/max macros
are trying to catch...

Duncan.

PS: please CC any comments to me, since I'm not subscribed to the list.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/