https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115409 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the warning in this case normally does not show up unless you are using -Wsystem-headers . We should fix the warning still.