Fix warnings found from clang