of/to no effect
of no effect
Without any or the desired result or impact. Our warnings were of no effect, as the government went ahead with its foolish tax overhaul.
to no effect
Achieving none of the desired result or impact. We warned them not to invest their money in such a foolish scheme, but to no effect.