diff options
| author | gingerBill <bill@gingerbill.org> | 2025-04-09 13:23:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-04-09 13:23:15 +0100 |
| commit | a66ea9bf4a0b6435614a6fe5a3386dfbb47c85ce (patch) | |
| tree | 0dfa4973c70acf863368ba4fbcc7a1022f6863e4 /src/checker.cpp | |
| parent | b07387321a37485b8561d743aba0dc41de462bb2 (diff) | |
Remove warning on struct field parameters being too big for the stack
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index c44c6ce5b..5a5ec9706 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -751,7 +751,7 @@ gb_internal void check_scope_usage_internal(Checker *c, Scope *scope, u64 vet_fl array_add(&vetted_entities, ve_unused); } else if (is_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); // TODO(bill): When is a good size warn? // Is >256 KiB good enough? |