Be smart enough to say that you feared for your life, fired, and missed.
NEVER call it a “warning shot”.
In many cities and towns, unless you fear for your life, you are not permitted to fire you gun within the city limits. So a warning shot is not legal, because if you feared for your life you would have been aiming center mass.
So, Larry is right. If you choose to fire a warning shot, make sure it is a situation where firing to kill is warranted, and say you were shooting to kill and missed.