GCC already warns about comparison between an unsigned type and a negative
constant. It also has the capability to warn about any comparison between a
signed type and an unsigned one, though I don't think this is used by default
when building the kernel because it generates a lot of noise.
There doesn't seem to be any warning for assignment of a negative value to an
unsigned variable, though I don't imagine it would be hard to add.
p.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/