https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=90735 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- The most likely reason the warning isn't suppressed by #pragma GCC diagnostic is that the statement it's issued for has no source line number associated with it. That's also why the warning doesn't point to such a statement (only the note does). The details of this bug are in pr90735.