https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83437
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- 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?)