[RFC] Fix clang analysis warnings. (5)

Continue #1478.
Get warning count back to zero.
Fixed and repushed. Thanks.