aboutsummaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-15 19:59:14 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-15 19:59:14 -0400
commite5420471a7364a92521575e7abd3a29a9318001b (patch)
tree6b7aaccff3d033fdc49cee41874071637fa8b68e /src/types.c
parentc3615dc92c667899af7a11b2b25201dad5502ee6 (diff)
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/types.c b/src/types.c
index 14f6bc8e..dd76258d 100644
--- a/src/types.c
+++ b/src/types.c
@@ -570,6 +570,7 @@ PUREFUNC size_t type_size(type_t *t)
#pragma GCC diagnostic pop
#endif
errx(1, "This should not be reachable");
+ return 0;
}
PUREFUNC size_t type_align(type_t *t)
@@ -646,6 +647,7 @@ PUREFUNC size_t type_align(type_t *t)
#pragma GCC diagnostic pop
#endif
errx(1, "This should not be reachable");
+ return 0;
}
type_t *get_field_type(type_t *t, const char *field_name)