[RFC] Fix clang analysis warnings. (6)

Fix 5 warnings.