[PATCH] Remove __wur attribute for printf/scanf functions
Mike Frysinger
vapier@gentoo.org
Wed Aug 12 09:59:00 GMT 2015
On 12 Aug 2015 09:38, Daniel Marjamäki wrote:
> Imho the __wur attribute should not be used on printf/scanf functions.
>
> It is not insane to ignore the return value from these. these functions will perform the wanted I/O even though the return value is not used.
you're confusing asprintf as a benign printf. it is insane to not be checking
the return value of that function. it does memory allocation among other
things.
as for the scanf family, see BZ #14254 and the thread from last time where we
rejected this proposal:
https://sourceware.org/bugzilla/show_bug.cgi?id=14254
https://sourceware.org/ml/libc-alpha/2013-10/msg00290.html
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150812/5414c2b7/attachment.sig>
More information about the Libc-alpha
mailing list