min/max and all that jazz

From: Duncan Sands (duncan.sands@math.u-psud.fr)
Date: Wed Sep 19 2001 - 04:59:17 EST


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/



This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:29 EST