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]
Other format: [Raw text]

[Bug c/66773] sign-compare warning for == and != are pretty useless


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66773

Eric Gallager <egall at gwmail dot gwu.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egall at gwmail dot gwu.edu

--- Comment #6 from Eric Gallager <egall at gwmail dot gwu.edu> ---
(In reply to Andreas Schwab from comment #5)
> A cast is seldom a good solution

Well, that's the sort of solution this warning causes inexperienced programmers
who don't know any better (such as myself) to use... Maybe now that GCC has
fixits, it could suggest something better?

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