-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libsodium 1.0.6: sodium_init() marked with __attribute__ ((warn_unused_result)) #1632
Comments
Somehow your fix doesn't show up on the github page. Yes it seems reasonable, though I'd personnaly prefer something like:
I've been beaten by assert disappearing in non debug code before. (I know On Tue, Nov 3, 2015 at 2:20 PM, Stuart Henderson notifications@github.com
Kapp Arnaud - Xaqq |
Ah I edited the post to remove the fix as it triggers an abort in the tests, so I wasn't sure what else needed doing ;) |
Okay, I believe I know why. sodium_init() can be called multiple time, however if the library was "sodium_init() returns 0 on success, -1 on failure, and 1 is the library On Tue, Nov 3, 2015 at 3:39 PM, Stuart Henderson notifications@github.com
Kapp Arnaud - Xaqq |
So this does the trick, or it could just check for != -1 ..
|
Backported to 4-1. I'm closing this issue now. |
libsodium 1.0.6 now marks sodium_init() with an attribute:
As a result, libzmq's build done with -Werror fails:
The text was updated successfully, but these errors were encountered: