https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120078
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
case OPT_Wc___compat:
if (!opts_set->x_warn_enum_compare)
handle_generated_option (opts, opts_set,
OPT_Wenum_compare, NULL, value,
lang_mask, kind, loc, handlers, true, dc);
if (!opts_set->x_warn_enum_int_mismatch)
handle_generated_option (opts, opts_set,
OPT_Wenum_int_mismatch, NULL, value,
lang_mask, kind, loc, handlers, true, dc);
break;
Are handled correctly but not Wjump-misses-init.
Wenum-compare from c-family/c.opt:
```
Wenum-compare
C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning LangEnabledBy(C
ObjC,Wall || Wc++-compat)
Warn about comparison of different enum types.
```