aboutsummaryrefslogtreecommitdiff
path: root/src/checker/checker.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-10-30 13:20:45 +0000
committerGinger Bill <bill@gingerbill.org>2016-10-30 13:20:45 +0000
commit3ec67853e1359015f516aac346760b299d261015 (patch)
treef3d87cd63e14fe1704b97431816f05dcec519fbf /src/checker/checker.cpp
parent09f39ae2ccea78ecd37facc5431c51e4c9666630 (diff)
Minor `Entity` refactor
Diffstat (limited to 'src/checker/checker.cpp')
-rw-r--r--src/checker/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker/checker.cpp b/src/checker/checker.cpp
index 4beaca6d3..50ac322d3 100644
--- a/src/checker/checker.cpp
+++ b/src/checker/checker.cpp
@@ -301,7 +301,7 @@ void destroy_scope(Scope *scope) {
for_array(i, scope->elements.entries) {
Entity *e =scope->elements.entries[i].value;
if (e->kind == Entity_Variable) {
- if (!e->Variable.used) {
+ if (!(e->flags & EntityFlag_Used)) {
#if 0
warning(e->token, "Unused variable `%.*s`", LIT(e->token.string));
#endif