This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Suggested rewording of warning message
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: Suggested rewording of warning message
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Fri, 13 Nov 1998 11:36:30 -0400
- cc: egcs-bugs at cygnus dot com
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