fix Clang warnings