print_warning function does not exist, removed calls