doubly linked list: add warning to erase()