mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-21 22:05:20 +00:00
Add extra explicit entity usage
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user