mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
"Fix" #2580
This commit is contained in:
@@ -651,6 +651,9 @@ gb_internal bool check_vet_unused(Checker *c, Entity *e, VettedEntity *ve) {
|
|||||||
case Entity_Variable:
|
case Entity_Variable:
|
||||||
if (e->scope->flags & (ScopeFlag_Global|ScopeFlag_Type|ScopeFlag_File)) {
|
if (e->scope->flags & (ScopeFlag_Global|ScopeFlag_Type|ScopeFlag_File)) {
|
||||||
return false;
|
return false;
|
||||||
|
} else if (e->flags & EntityFlag_Static) {
|
||||||
|
// ignore these for the time being
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
case Entity_ImportName:
|
case Entity_ImportName:
|
||||||
case Entity_LibraryName:
|
case Entity_LibraryName:
|
||||||
|
|||||||
Reference in New Issue
Block a user