silence a few clang & gcc warnings, partially addressing #856