-
Notifications
You must be signed in to change notification settings - Fork 286
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
Correct last compilation warnings in readpassphrase #424
Conversation
I'd rather not maintain a custom version of readpassphrase. Do you know if upstream versions of this code still produce warnings? |
Yes, I had a look, it does. |
Shouldn't we error out if the write fails? |
It's the |
If we look at the modifications finally made to this upstream file, they are rather tiny : The 2 write calls :
Have simply been changed to :
That's it 👍 |
Looks to me like a few things have changed. I've created a PR #425 to import a new version. I don't see any compiler warnings when building. |
At least if we could commit this @vgough to get rid of compilation warnings + clang warnings visible in master CI, I think it would be perfect 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, go for it.
Many thanks @vgough 👍 |
Hi,
This PR corrects last compilation warnings regarding
readpassphrase.cpp
.It comes back to the original file, simply adding a dummy test to avoid the
(void)write()
warnings.Will then help to progress on #426.
Thank you !