Prevented code from being modified if warning or error detected.