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 warning annotation sometimes fails #78957

Closed
daveTheOldCoder opened this issue Jul 2, 2023 · 1 comment
Closed

Integer division warning annotation sometimes fails #78957

daveTheOldCoder opened this issue Jul 2, 2023 · 1 comment

Comments

@daveTheOldCoder
Copy link

daveTheOldCoder commented Jul 2, 2023

Godot version

4.0.3.stable, 4.1.rc2

System information

Linux (Pop!_OS 20.04)

Issue description

The annotation @warning_ignore("integer_division") sometimes fails to suppress warning messages.

The issue seems to occur in compound expressions.

I found two similar existing issues, but the problems they report are somewhat different, so I'm posting this new issue.
#34623
#42966

This is a regression. The problem does not occur in 3.5.2.stable, when the corresponding warning-ignore annotation is used.

Steps to reproduce

Import and run the attached MRP. The project was created in 4.1.rc2. Observe that there are warning messages, even though the annotations are present in the script.

Minimal reproduction project

IntegerDivisionWarningBug.zip

@Calinou
Copy link
Member

Calinou commented Jul 2, 2023

Thanks for the report! Consolidating in #56592, as the integer division warning not working above if/for blocks is already tracked there.

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