https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70475
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2016-04-05 Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- It doesn't make much sense that we warn for: if (a) do_stuff(); do_other_stuff(); but not for if (a) do_stuff(); do_other_stuff(); or for if (a) do_stuff(); do_other_stuff(); So I agree that the warning is questionable. I'll propose a patch.