fix clang compiler warnings