Fix a small bug in -warn-error.