Another member here fired a warning shot during a dog attack. I gave him a hard time and others did as well.
But now having experienced the same, I can't say that I too thought about doing the same.
A few years ago I arrived home from the shooting range. I sat down to lunch and a few minutes later I heard a lot of screaming outside. I stood up and looked out the window and saw two dogs fighting. Several people were there trying to break up the fight.
Dog #1 was the attacker. Dog #2 was on a leash being walked by it's owner. In a matter a seconds dog #1 grabbed #2 by the throat and would not let go. I put my house slippers on and went out the front door. On the way out I grabbed a baton style stun gun.
As I ran the 50 or so yards I saw the owner of dog #2 hit dog #1 on top of the head with his fist. Dog #2 let go and bit the owner on the upper arm which resulted in a wound that was bleeding profusely. Dog #1 then resumed his attack on dog #2 by grabbing by the throat again.
As I closed in a turned the stun gun on. When I got close enough I put the stun gun on dog #1 rear end and pushed the button. The dog jumped straight up about 6 feet and then ran off. He ran about 40 yards and immediately turned around and came back towards us.
I was still armed after returning from the range. For a brief second I considered drawing and shooting the dog. I had a good clear backstop. Everyone was behind me. I decided against it because the dogs owner was there as well as her three little girls all under the age of 7. The owners of the attacking dog tried to separate the dogs earlier but at 5' 2" and a hundred pounds, she was unsuccessful.
As the dog closed the distance I pushed the button on the stun gun to deter him. Nothing. The batteries were gone. So I drew my gun and dropped to a knee. The dog sensed that things may no longer be in his favor and stopped.
I heard two sirens. One ambulance and the second cops. I put my gun away and let them handle things. Nobody mentioned my gun. I then became a witness.
Of all thing the owner of dog #1 got a TICKET! The dog was allowed to remain at home. A week later the same dog attacked a woman walking her dog and was severely mauled and her dog killed. Dog #1 was euthanized.
If I didn't have the stun gun, I may well have fired a warning shot into the grass instead of trying to shoot a dog that was running towards me and hoping that hit it with one or more rounds.
Where two legged attackers are involved, no, I believe they are a liability. But animals that are hell bent on attacking are very difficult to deter and either don't understand verbal commands or just ignore them altogether.
So, In the same situation, yes I may fire a warning shot. Am I wrong? Maybe.
Sorry for the long story and the dog #1 and 2 bit. I don't want to state the breed of dogs to start another argument.