Suggested rewording of warning message
Zack Weinberg
zack@rabi.columbia.edu
Thu Nov 12 19:55:00 GMT 1998
On Thu, 12 Nov 1998 14:17:03 -0800, Claus Fischer wrote:
>
>The message
> warning: unsigned value < 0 is always 0
>
>could be mis-interpreted as:
> "an unsigned value which is less than zero is always zero",
>instead of the intended meaning
> "expression (unsigned value < 0) is always zero".
>
>Perhaps someone who is a native speaker of English might think of a
>good unambigous replacement message.
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.
zw
More information about the Gcc-bugs
mailing list