Godot version:
68676c7
Issue description:
IMO "for" loops should not spawn this warning to log, because its often used just for iteration and temp value can be not used at all
Interestingly, for i in 2:
doesn't raise the warning.
Maybe we can allow _
as a loop variable if you know you won't need it
While trying to clean the logs, hunting for real problems, I find two annoying ones.
One of them is the above. I even naturally tried _ hoping it will work.
The other one is integer division. No matter what I do or cast it keeps showing,
@karroffel suggestion is great +1 for that.
Additional option to silent warnings via settings or event better via code (to specific code blocks) will also help.
This workaround works like a charm!
for _i in range(MY_RANGE):
Thank you @okynos ,
Yes, I know this issue already solved in one of the 3.x releases.
I guess this issue is not relevant anymore.
OP ( @Chaosus ) should decide if he wishes to close it.
Yeah, its fixed, sorry for late react
Most helpful comment
Maybe we can allow
_
as a loop variable if you know you won't need it