Warning shots are intended to change someone’s behavior. You are warning someone to back off or I’ll shoot. This means the threat has not reached the level of deadly force required to use a deadly force weapon. If it had you would be defending yourself. That round you fired in the air has to land somewhere. Above all warning shots are dangerous and illegal.