https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
--- Comment #25 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #24) > I agree that (void) should suppress the warning. Jakub, do you remember why > you made a different choice? I think the request came from Uli that it isn't that easy to suppress it, at least initially the warning was meant for cases where it would be a major security problem to ignore the return value.