Add __wur for GNU strerror_r()

chrubis@suse.cz chrubis@suse.cz
Thu Jun 7 13:18:00 GMT 2012


Hi!
Attached patch adds __wur for GNU version of strerror_r() as not using
it's return value is always mistake.

Moreover this causes warning to be emited when GNU version is used when
the code expects XSI version (that now compiles cleanly).

Such confusion could easily happen when some of the used headers define
_GNU_SOUCE, looking into my system these include Python.h, Image Magick
magick-config.h, awk.h, etc...

-- 
Cyril Hrubis
chrubis@suse.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-__wur-to-GNU-version-of-strerror_r.patch
Type: text/x-patch
Size: 1052 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120607/1ece3628/attachment.bin>


More information about the Libc-alpha mailing list