4 ms·
Gotcha, thanks! I'll give it a whirl. +++ And it worked! Thanks for that! I'll file that in my notes for building on Ubuntu and derivatives for the future.
by morganvachon 8y ago
Gotcha, thanks! I'll give it a whirl.
+++
And it worked! Thanks for that! I'll file that in my notes for building on Ubuntu and derivatives for the future.
- j1elo 8y agoYou'd better write it in the compiler-specific notes! ;-) As I said, new warnings are added to each new version of the compiler, that's why -Werror is dangerous for code that is intended to keep compiling without changes. The unused-result warning was added in GCC 4.5, I bet in some of those older distros you can try and it will compile just fine, because they come with GCC 4.4 or older... Likewise, probably the author used an sufficiently old GCC version when this code was written.
- morganvachon 8y agoGot it. As I said I'm certainly not a developer but you've given me a lot of great info here. I do a good bit of compiling from source on Slackware for packages not available in the official or third party repos, and I've rarely had build issues similar to this one. Now I know one more thing to look for. Thanks again!