clang static analysis fixes.