closed #5541: add warning code and comment.