Another word for a warning is a reprimand.