https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60439
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |ASSIGNED Resolution|FIXED |--- Target Milestone|--- |4.10.0 --- Comment #11 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Ah, sorry about that. I wonder where the Var(warn_switch_bool) disappeared. In the particular testcase you posted I agree we shouldn't warn, but I think we should warn in case there is the default label. I have no problem with moving the warning to -Wall. I'll prepare a patch tomorrow.