Fix new warnings reported by scan-build from LLVM/Clang 10

Ondřej Surý requested to merge ondrej/scan-build-10-fixes into master

Merge request reports