Means for warning road traffic that a gate is closed or closing, or that rail traffic is approaching