Suggested rewording of warning message
Horst von Brand
vonbrand@sleipnir.valparaiso.cl
Sat Nov 14 05:40:00 GMT 1998
Zack Weinberg <zack@rabi.columbia.edu> said:
[...]
> Since this is a warning about a test, how about this:
>
> warning: condition `unsigned value < 0' is always false
>
> or, if possible, this:
>
> warning: unsigned comparison `x < 0' is always false
>
> where x is the variable being compared against 0.
x might be an expression, not a variable. Perhaps:
warning: unsigned comparison < 0 is always false
And how about >= 0? It should be reworded too.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viña del Mar, Chile +56 32 672616
More information about the Gcc-bugs
mailing list