Attribute warn_unused_result

Robert Connolly robert at linuxfromscratch.org
Wed Aug 23 21:03:09 PDT 2006


Those warnings are from -D_FORTIFY_SOURCE=2, and I didn't realize it produced 
warnings. I removed -Werror for now until it can be fixed. I don't remember 
having a problem with butterfly toolchain with --enable-werror-always though.

robert

On Wednesday 23 August 2006 15:33, Filip Bartmann wrote:
> How can I disable(adjust source code)warnings about functions "declared
> with attribute warn_unused_result" in many HLFS packages, which is
> treated as errors with -Werror switch, which is in HLFS book used.
> This is with functions as:fgets,mktemp,fwrite_unlocked,fscanf,chdir...
> in packages as butterfly-toolchain,findutils,make...
> Filip Bartmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/hlfs-dev/attachments/20060824/5a97d7c8/attachment.sig>


More information about the hlfs-dev mailing list