What is the law regarding the firing of warning shots?

Dear Editor,

There is a case pending where a licensed firearm holder was charged for discharging his firearm within 100 yards of a public way. The explanation given by the defendant was that he did it to scare off would-be robbers in his yard.

As a licensed firearm holder, I am asking whether I don't have the right to protect myself and family if I am threatened by robbers on my property by firing a warning shot. I did this and managed to catch the robber many years ago. And what about squibs, the noise of which is similar to gunshots and goes on with wanton abandon, while the perpetrators remain unmolested and non-prosecuted?

I would without prejudice to the case, appreciate an explanation of the law in this regard.

Yours faithfully,

(Name and address provided)