From cf94d1735d6ff84269e08afbdeb8744fd05be473 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 13 Jan 2019 11:24:03 +0000 Subject: Add extra explicit entity usage --- src/check_type.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index 65a546e5e..3eeb40777 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1752,6 +1752,8 @@ Type *check_get_results(CheckerContext *ctx, Scope *scope, Ast *_results) { param->Variable.param_value = param_value; array_add(&variables, param); add_entity(ctx->checker, scope, name, param); + // NOTE(bill): Removes `declared but not used` when using -vet + add_entity_use(ctx, name, param); } } } -- cgit v1.2.3