https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--- Comment #32 from Segher Boessenkool <segher at gcc dot gnu.org> --- Yes, it does hurt. Quite many people use casts to void automatically on all function calls where they do not use the result. They of course need to be re-educated on that. Casts to void do not portably suppress warnings, either. Finally, you can suppress the warning in much better ways (namely, by actually using the result! What a novel concept).