https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16351
--- Comment #34 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to David Binderman from comment #33) > I found that using -g -O2 -Wall didn't enable this warning. > Some of the documentation says it does. Ops, you are right. I used the wrong EnabledBy() instead of LangEnabledBy(). I see now that are other options suffering from the same problem. I'll produce a patch.