Warning shots are still legally nebulous around the US, so unless you are familiar with your state law, be very hesitant to claim one.
http://www.thetruthaboutguns.com/2013/08/robert-farago/self-defense-tip-theres-thing-warning-shot/
Be even more hesitant to claim that you accidentially discharged your weapon without meaning to do so.