From 584dffea1420b1e2ce98922f8dd5cf63e5fb8872 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 4 Mar 2018 09:25:02 +0000 Subject: Remove dead code; fix referencing of a type assertion in a selector expression --- src/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.cpp') 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 } -- cgit v1.2.3