https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89586
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:2ac27bd50388d90a430357ce2d36f306cbe10128 commit r15-3341-g2ac27bd50388d90a430357ce2d36f306cbe10128 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Sat Aug 31 11:57:32 2024 -0700 libobjc: Add cast to void* to disable warning for casting between incompatible function types [PR89586] Even though __objc_get_forward_imp returns an IMP type, it will be casted to a compatable function type before calling it. So we adding a cast to `void*` will disable warning about the incompatible type. Pushed after bootstrap/test on x86_64. libobjc/ChangeLog: PR libobjc/89586 * sendmsg.c (__objc_get_forward_imp): Add cast to `void*` before casting to IMP. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>