https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121397
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |ro at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I must say I have no idea why the forward declaration is there at all, it isn't needed even for -Wstrict-prototypes when it is static, the unused attribute if needed (doesn't gcc just not warn about "unused" functions with constructor attribute?) can be added to the definition as well.