https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89729
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Xavier from comment #0) > There are already many bugs about this one, but since I am not expert on > C++, I would like to have your advice. [...] > What's the correct way in gnu++98 to do this ? [...] > The other bugs mention cast to void * as a workaround, this does seem to > work, even with a simple C cast. Is this also acceptable in my case for both > memset and memcpy ? You should use the gcc-help mailing list for questions like this, because you're not reporting a bug.