Why is getentropy marked with warn_unused_result?

Florian Bruhin me@the-compiler.org
Sat Jul 22 21:15:00 GMT 2017


Hi!

I recently opened a bug in the Qt project[1] because it failed to
compile on my system. The reason this happened is because it ignored the
return value of a getentropy() call, and that's marked with __wur.

Why is that, since it shouldn't fail under normal circumstances (at
least that's what Qt's sources claim)?

Florian

[1] https://bugreports.qt.io/browse/QTBUG-61968

-- 
https://www.qutebrowser.org  | me@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072  | https://the-compiler.org/pubkey.asc
         I love long mails!  | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-help/attachments/20170722/cb65fc6d/attachment.sig>


More information about the Libc-help mailing list