https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98543
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2021-01-07 00:00:00 |2024-4-5 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note clang's warning here is not with -Wunused either but with a different option (and has been that way since at least clang 3.0): ``` <source>:2:13: warning: function 'f' is not needed and will not be emitted [-Wunneeded-internal-declaration] 2 | static void f() | ^ ```