[Bug c/38046] 'warning: comparison between signed and unsigned' shouldn't be given for equality comparisons
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Feb 24 14:29:00 GMT 2010
------- Comment #4 from manu at gcc dot gnu dot org 2010-02-24 14:29 -------
I am really sorry, I don't think we want to add an option for this particular
case. As Joseph explained, there is a difference if the variables are
mismatched signed/unsigned or not.
For your problem, you could use a wrapper around read() that does the cast.
Sorry, but this is not worth the overhead. Closing as WONTFIX.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38046
More information about the Gcc-bugs
mailing list