diff options
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } } |