omecra / de.omecra.oedt.updatesite

OEDT Plug-in Updatesite - Issue Repository for OEDT
12 stars 0 forks source link

False positive unused variable #146

Closed lievendf closed 1 year ago

lievendf commented 2 years ago

Perhaps not so common, but I found the following construct in our (legacy) code:

DEFINE VARIABLE Count AS INTEGER NO-UNDO.

DO WHILE NOT AVAILABLE Order Count = 1 TO 10: FIND Order WHERE ... . IF NOT AVAILABLE Order THEN PAUSE 1. END.

The Count variable is incorrectly flagged as unused.

lneumeier commented 1 year ago

Behavior change in 9.4.4+, keywords as identifiers are now excluded for tasks like "Unused Variables".