[Bug c++/11856] Wrong warning regarding assert
o dot kullmann at swansea dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Fri Aug 8 15:29:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856
------- Additional Comments From o dot kullmann at swansea dot ac dot uk 2003-08-08 15:29 -------
Subject: Re: Wrong warning regarding assert (addition)
> > ------- Additional Comments From marcus at jet dot franken dot de 2003-08-08 14:36 -------
> > c>=0 is always true for unsigned characters, thats where the warning comes
> > from.
> >
I'm sorry, but I missed the point:
In the gcc-info-documentation I have it says under option "-W":
`-W'
Print extra warning messages for these events:
* An unsigned value is compared against zero with `<' or `<='.
So I think the error here is that I get the *extra* warnings of "-W" without
specifying "-W".
Oliver
More information about the Gcc-bugs
mailing list