aboutsummaryrefslogtreecommitdiff
path: root/src/checker/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker/expr.cpp')
-rw-r--r--src/checker/expr.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp
index 429b5e6ba..0d1306408 100644
--- a/src/checker/expr.cpp
+++ b/src/checker/expr.cpp
@@ -805,9 +805,7 @@ void check_identifier(Checker *c, Operand *o, AstNode *n, Type *named_type, Cycl
if (n->Ident.string == make_string("_")) {
error(n->Ident, "`_` cannot be used as a value type");
} else {
- auto *entries = c->context.scope->elements.entries;
- error(n->Ident,
- "Undeclared name: %.*s", LIT(n->Ident.string));
+ error(n->Ident, "Undeclared name: %.*s", LIT(n->Ident.string));
}
o->type = t_invalid;
o->mode = Addressing_Invalid;