mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-20 00:16:47 +00:00
Remove warning on struct field parameters being too big for the stack
This commit is contained in:
+1
-1
@@ -751,7 +751,7 @@ gb_internal void check_scope_usage_internal(Checker *c, Scope *scope, u64 vet_fl
|
|||||||
array_add(&vetted_entities, ve_unused);
|
array_add(&vetted_entities, ve_unused);
|
||||||
} else if (is_shadowed) {
|
} else if (is_shadowed) {
|
||||||
array_add(&vetted_entities, ve_shadowed);
|
array_add(&vetted_entities, ve_shadowed);
|
||||||
} else if (e->kind == Entity_Variable && (e->flags & (EntityFlag_Param|EntityFlag_Using|EntityFlag_Static)) == 0 && !e->Variable.is_global) {
|
} else if (e->kind == Entity_Variable && (e->flags & (EntityFlag_Param|EntityFlag_Using|EntityFlag_Static|EntityFlag_Field)) == 0 && !e->Variable.is_global) {
|
||||||
i64 sz = type_size_of(e->type);
|
i64 sz = type_size_of(e->type);
|
||||||
// TODO(bill): When is a good size warn?
|
// TODO(bill): When is a good size warn?
|
||||||
// Is >256 KiB good enough?
|
// Is >256 KiB good enough?
|
||||||
|
|||||||
Reference in New Issue
Block a user