fix clang error "redeclaration function"