Some prosecutors find warning shots to be evidence of laudable restraint.
http://gunwatch.blogspot.com/2015/09/ok-warning-shots-evidence-of-restraint.html
Depends on where one lives and who the prosecutor is I guess.If I do a warning shot it would be to the kneecap.