diff options
| author | gingerBill <bill@gingerbill.org> | 2019-01-13 11:24:03 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-01-13 11:24:03 +0000 |
| commit | cf94d1735d6ff84269e08afbdeb8744fd05be473 (patch) | |
| tree | aefb029adfddc879c4a6ffc2fa6a08db93e50ea3 /src/check_type.cpp | |
| parent | d9245a6af31a708e9c475e55ac9ffa1b212487ee (diff) | |
Add extra explicit entity usage
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); } } } |