https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92117
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic CC| |egallager at gcc dot gnu.org --- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> --- -Wbad-function-cast is a strange legacy warning that is more about GCC's internal implementation details (of TREE_CODEs) than anything in user code: https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00250.html IOW I wouldn't worry too much about it. But I guess if someone really wants to change it, they could...