https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100920
--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Raising one for these cases is really problematic. Functions using void in > stead of an explicit type are explicitly saying that the type does not > matter. There never is a warning for any other type where you pass them. so > I hope you can give this one another go. No, the warning needs to be conservative.