Open Daniel-Cortez opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity.
It would be good if #pragma unused x
could suppress this warning as well:
REMOTE_FUNC__ static void:yrt_7(&a, &b, c, &d)
{
//print("yrt_7 called");
a = 8;
b = a;
c += d;
d -= 4;
#pragma unused c
}
I get a warning on the c
here (which is a correct warning), but the #pragma
doesn't silence it. I'm actually testing that the value isn't propagated, so can't remove the assignment.
@Y-Less Thanks, I forgot to reset the "modified" flag when using #pragma unused/unread
. This should be fixed now.
What this PR does / why we need it:
This PR does the following:
++
,--
, and compound assignment operators (+=
,-=
,*=
etc,)goto
is used inside of a loop, on a label defined after the use, inside of the same loop (see https://github.com/pawn-lang/compiler/issues/669#issuecomment-895317894).Which issue(s) this PR fixes:
Fixes #669
What kind of pull this is:
Additional Documentation: