https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99317
--- Comment #2 from Piotr <pj at hugeone dot co.uk> --- @(In reply to Andrew Pinski from comment #1) > 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. With not `void *` it is exactly the same. https://godbolt.org/z/zM8Eqs No -pedantic option too.