Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer division in a condition of an if block cannot be ignored #82276

Closed
Lemonymous opened this issue Sep 25, 2023 · 2 comments
Closed

Integer division in a condition of an if block cannot be ignored #82276

Lemonymous opened this issue Sep 25, 2023 · 2 comments

Comments

@Lemonymous
Copy link

Godot version

v4.2.dev5.mono.official [e3e2528]

System information

Windows 10, Forward+, NVIDIA GeForce GTX 1050 Ti (31.0.15.3623)

Issue description

Godot will continue to warn about integer division in the condition of an if block, even when adding an ignore command.

func _ready():
	@warning_ignore("integer_division")
	if 1/1:
		pass

The following warning will continue even after you click to ignore it.

[Ignore] Line N (INTEGER_DIVISION):Integer division, decimal part will be discarded.

Steps to reproduce

Copy paste the code above

Minimal reproduction project

N/A

@dalexeev
Copy link
Member

dalexeev commented Sep 25, 2023

Closing as #56592 is a superset of this issue. Thanks for reporting the bug nonetheless!

@dalexeev dalexeev closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2023
@Lemonymous
Copy link
Author

Thank you!

I apologize for not doing my due diligence of searching for the issue beforehand this time. Will try to remember it for next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants