compiler icon indicating copy to clipboard operation
compiler copied to clipboard

Warning 250 false positive

Open Y-Less opened this issue 3 years ago • 2 comments

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:

Y-Less avatar Aug 29 '21 15:08 Y-Less

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.

Daniel-Cortez avatar Sep 29 '21 14:09 Daniel-Cortez

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

stale[bot] avatar Jan 09 '22 03:01 stale[bot]