mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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;
|
param->Variable.param_value = param_value;
|
||||||
array_add(&variables, param);
|
array_add(&variables, param);
|
||||||
add_entity(ctx->checker, scope, name, 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