https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81851
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |UNCONFIRMED Ever confirmed|1 |0 --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- There is no difference between functions f() and g() in comment #0. The source code in both is equivalent (and the latter is frequently preferred to the former) and the emitted object code is identical. So irrespective of whether or not both were considered in the implementation of the warning, I can't think of a justification for diagnosing only one and not the other that would be helpful to users. (If there is one, what is it?)