Some corrections and additions to improve the mechanism for
generating warnings on unused/uninitialized variables
This commit is contained in:
@@ -101,7 +101,9 @@ import(int local;)
|
||||
} :
|
||||
[ FROM
|
||||
IDENT { FromId = dot2leaf(Name);
|
||||
if (local) df = lookfor(FromId,enclosing(CurrVis),0);
|
||||
if (local) {
|
||||
df = lookfor(FromId,enclosing(CurrVis),0,D_USED);
|
||||
}
|
||||
else df = GetDefinitionModule(dot.TOK_IDF, 1);
|
||||
}
|
||||
]?
|
||||
|
||||
Reference in New Issue
Block a user