Why brandishing, shooting to wound, and warning shots are BAD ideas
Some of the very worst advice is about how to avoid the legal fallout of self defense by using a firearm in a non-lethal way, such as brandishing, shooting to wound rather than to kill, and firing one or more warning shots to scare off an attacker.
In short, don't draw your firearm until you honestly believe you are in immediate danger of death or great bodily harm. And if that is truly your belief, you don't have the leisure of brandishing, shooting to wound, or firing a warning shot.
At that crucial moment, you should do what you've been trained to do: stop the attack by shooting your attacker center mass until the danger is gone.
Then, if you end up in a courtroom, you can honestly and with conviction look the jury in the eyes and say, "I feared for my life. I had no choice."