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

Warning 250 false positive #673

Open
Y-Less opened this issue Aug 29, 2021 · 2 comments
Open

Warning 250 false positive #673

Y-Less opened this issue Aug 29, 2021 · 2 comments

Comments

@Y-Less
Copy link
Member

Y-Less commented Aug 29, 2021

Issue description:

It seems that all loop condition variables are checked for modifications, even when there are two compared to each other. I noticed this in a warning in y_areas:

https://github.com/pawn-lang/YSI-Includes/blob/5c2eafe471ae66c91e2c00eefa417f3f28796af5/YSI_Visual/y_areas/y_areas_entry.inc#L1661

This gives a warning that size is not modified in the loop body. That's true, but done is, and as long as at least one of them is there shouldn't be a warning.

@Daniel-Cortez

Workspace Information:

  • Compiler version:
  • Command line arguments provided (or sampctl version):
  • Operating System:
@Daniel-Cortez
Copy link
Contributor

That's strange, normally it should be warning 251 when there are 2 or more variables used in the loop condition.
I'll look into it.

@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity.

@stale stale bot added the state: stale label Jan 9, 2022
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