From e5420471a7364a92521575e7abd3a29a9318001b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 Apr 2025 19:59:14 -0400 Subject: Make some compatibility fixes to make sure the compiler can fully build using TinyCC --- src/environment.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/environment.c') diff --git a/src/environment.c b/src/environment.c index 70c29ce7..9605707a 100644 --- a/src/environment.c +++ b/src/environment.c @@ -38,6 +38,7 @@ static type_t *declare_type(env_t *env, const char *def_str) } default: errx(1, "Not a type definition: %s", def_str); } + return NULL; } static type_t *bind_type(env_t *env, const char *name, type_t *type) @@ -676,6 +677,7 @@ env_t *for_scope(env_t *env, ast_t *ast) } default: code_err(for_->iter, "Iteration is not implemented for type: ", type_to_str(iter_t)); } + return NULL; } env_t *get_namespace_by_type(env_t *env, type_t *t) -- cgit v1.2.3