fix clang warnings