diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
| commit | e5420471a7364a92521575e7abd3a29a9318001b (patch) | |
| tree | 6b7aaccff3d033fdc49cee41874071637fa8b68e /src/environment.c | |
| parent | c3615dc92c667899af7a11b2b25201dad5502ee6 (diff) | |
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/environment.c')
| -rw-r--r-- | src/environment.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
