https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109538
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect this will be closed as a dup of bug 108165 really. Because the warning is doing it is expected of it and it is hard to figure out without the full code available at the time (which the warning does not take that into account). It just knows the function declaration rather than what is inside the function itself.