Avoid printing a warning twice