https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83437
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org --- Comment #8 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Markus Trippelsdorf from comment #2) > I think casting to/from void* (*)() should always be silently accepted. > Or perhaps the warning should not be enabled even for -Wextra like clang's > -Wbad-function-cast. (BTW why didn't you use that name?) GCC already has a warning by that name; I asked about it in October and this was Bernd's response: https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00250.html