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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |WONTFIX

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The warning works as designed but in cases when it isn't useful it can be
suppressed either on the command line (-Wno-enum-compare) or using #pragma
diagnostic ignored "-Wenum-compare", or by casting one of the enumerators to
(for example) int.

Reply via email to