May an employer substitute a warning with a dismissal?