https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98512
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- Patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563862.html A workaround until the patch is approved, is to move the warning suppression pragmas above the the function declaration.