[lkml]   [2001]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectmin/max and all that jazz
gcc has a warning option -Wsign-compare (not turned on by -Wall):

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...


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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.042 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site