fixed warnings for clang