https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99317
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I dont think this is exactly a bug. The warning is a pedantic warning and with void*, things are implicitly converted by standard c rules.