How can I suppress warning about setting size with set_deferrred

I added a spurious unused var into a script and here, if you click the yellow warning icon this opens (with the ignore link underlined).

I don’t think this is going to help you in your situation though. Although you can get the warning name from here at least.

There is some stuff about using # ignore_warning but I don’t think that works any more. I read a bit about it here in this older post:

The link to the PR has it but it looks like it was removed.

I had a plugin that threw warnings and it annoyed me so much that I stopped using it. I hope you get it fixed, but perhaps trying to fix rather than work around these warnings would be better (I know, you said you had your reasons) because the warnings are there for a reason (I imagine anyway, although you seem advanced enough to know this already, and perhaps know when you don’t want them safely.)

Best wishes.

2 Likes