From 8c3315e5119452b48978abaf955deaabdfd015de Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 18 Feb 2019 23:03:07 -0800 Subject: void is an incomplete type --- type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type.c b/type.c index 224153b..97def21 100644 --- a/type.c +++ b/type.c @@ -7,7 +7,7 @@ #include "backend.h" #include "type.h" -struct type typevoid = {.kind = TYPEVOID}; +struct type typevoid = {.kind = TYPEVOID, .incomplete = true}; struct type typechar = {.kind = TYPEBASIC, .size = 1, .align = 1, .repr = &i8, .basic = {.kind = BASICCHAR, .issigned = 1}}; struct type typeschar = {.kind = TYPEBASIC, .size = 1, .align = 1, .repr = &i8, .basic = {.kind = BASICCHAR, .issigned = 1}}; -- cgit v1.2.3