aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 7db0f94a7..60eb39403 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -2245,7 +2245,7 @@ i64 type_offset_of(gbAllocator allocator, Type *t, i32 index) {
case 3: return 3*build_context.word_size; // allocator
}
} else if (t->kind == Type_Union) {
- i64 s = type_size_of(allocator, t);
+ /* i64 s = */ type_size_of(allocator, t);
switch (index) {
case -1: return align_formula(t->Union.variant_block_size, build_context.word_size); // __type_info
}