My take is no. A single warning shot sends the message. If you fire a bunch of rounds, a jury would question your decision making. And, they need to be fired a different direction, totally away from the door. So, there is zero question in the mind of the jury that it was intended to put the bad guy on notice, nothing more.I've asked that question, too. I suppose jurisdictions matter as w/ most details involving shootings.
As regards "warning shots" I've often wondered if part of a solid home defense plan would involve a stack of old phone books in a corner where in the event a threat occurs to enter but as yet has not occurred, a few shots preceded by and followed by yelling "Don't come thru that door!" could be fired.
Your goal is to convince police, a DA and possibly a jury that your only intent was to stop deadly force. You choose to fire one round of the ammo in your gun as a warning to stop the violence. It all has to sound reasonable to those guys, not to a group of gun guys like us.