diff options
| author | gingerBill <bill@gingerbill.org> | 2023-06-07 12:13:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-06-07 12:13:20 +0100 |
| commit | ef944b903b25e4ddc30af1ff14beee9e349d3a5f (patch) | |
| tree | 3afeaacc45804a02eadf7563f65cf4807348d447 /src | |
| parent | 0c477f2c6b40046bf5000012808a095c2cd7cf85 (diff) | |
"Fix" #2580
Diffstat (limited to 'src')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 6b5046f3d..c71546499 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -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: |