[Bug c/79696] missing -Wunused-result on calls to malloc() and calloc()

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 24 00:09:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79696

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-Wunused-result warns on the attribute warn_unused_result usage.  If these
functions are not marked that way in glibc, it is maybe a glibc bug.
I don't think we should mark these as warn_unused_result really.


More information about the Gcc-bugs mailing list