https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
Bug ID: 66425 Summary: (void) cast doesn't suppress __attribute__((warn_unused_result)) Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rusty at rustcorp dot com.au Target Milestone: --- Yes, a repeat of 2005's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509 The world, especially glibc and the Linux kernel, have adopted __wur with a passion, taking it well outside the "must" case (basically, realloc and nothing else) into the "should" case. For better or worse. Thus I politely request that an explicit (void) cast work to disable this warning. Having projects create their own custom macros/templates to do this is a worse outcome, and doesn't stop idiocy like ignoring realloc() anyway. Please consider. PS. Happy to create a patch, if that would help.