aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-07 12:13:20 +0100
committergingerBill <bill@gingerbill.org>2023-06-07 12:13:20 +0100
commitef944b903b25e4ddc30af1ff14beee9e349d3a5f (patch)
tree3afeaacc45804a02eadf7563f65cf4807348d447 /src/checker.cpp
parent0c477f2c6b40046bf5000012808a095c2cd7cf85 (diff)
"Fix" #2580
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp3
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: