The effect of threat of a spanking without actually hitting?

Not optimal. A problem parents often create for themselves is making threats they don't really want to/intend to follow through on. Research shows that spanking and similar punishments suggest "might makes right." threatening to spank may convey the same message. Empty threats are especially bad because the child eventually will call your bluff. Times out really do work if used consistently and well.