Residents in the Costa del Sol were warned of the risk in an emergency message