We use Clang to compile the official builds. If you want to do a manual build with GCC, it looks like you need to add -Wno-unused-result. I'd be happy to review a pull request that either adds that if GCC is being used or fixes the warnings if they're harmful.