This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Suggested rewording of warning message


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]