"Fix" #2580
This commit is contained in:
1 parent
0c477f2c6b
commit
ef944b903b
1 file changed
+3
@@ -651,6 +651,9 @@ gb_internal bool check_vet_unused(Checker *c, Entity *e, VettedEntity *ve) {
|
||||
case Entity_Variable:
|
||||
if (e->scope->flags & (ScopeFlag_Global|ScopeFlag_Type|ScopeFlag_File)) {
|
||||
return false;
|
||||
} else if (e->flags & EntityFlag_Static) {
|
||||
// ignore these for the time being
|
||||
return false;
|
||||
}
|
||||
case Entity_ImportName:
|
||||
case Entity_LibraryName:
|
||||
|
||||
Reference in new issue
Block a user