pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
303 stars 70 forks source link

Warning 250 false positive #673

Open Y-Less opened 3 years ago

Y-Less commented 3 years ago

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:

Daniel-Cortez commented 2 years ago

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[bot] commented 2 years ago

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