From 7845769d4b417fdd321740c5404016dbc3119d43 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 19 Aug 2021 15:03:10 +0100 Subject: Remove unused code --- src/check_decl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 06214810b..c8bacb9b2 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -384,7 +384,6 @@ void check_const_decl(CheckerContext *ctx, Entity *e, Ast *type_expr, Ast *init, Operand operand = {}; - Entity *other_entity = nullptr; if (init != nullptr) { Entity *entity = nullptr; if (init->kind == Ast_Ident) { @@ -1287,9 +1286,9 @@ void check_proc_body(CheckerContext *ctx_, Token token, DeclInfo *decl, Type *ty check_open_scope(ctx, body); { for_array(i, using_entities) { - Entity *e = using_entities[i].e; Entity *uvar = using_entities[i].uvar; Entity *prev = scope_insert(ctx->scope, uvar); + gb_unused(prev); // NOTE(bill): Don't err here } -- cgit v1.2.3