Fix some mostly harmless warnings from LLVM static analysis