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/repl.c | |
| parent | c3615dc92c667899af7a11b2b25201dad5502ee6 (diff) | |
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/repl.c')
| -rw-r--r-- | src/repl.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -148,6 +148,7 @@ const TypeInfo_t *type_to_type_info(type_t *t) } default: print_err("Unsupported type: ", type_to_str(t)); } + return NULL; } static PUREFUNC void *get_address(env_t *env, ast_t *ast) @@ -160,6 +161,7 @@ static PUREFUNC void *get_address(env_t *env, ast_t *ast) } default: print_err("Address not implemented for ", ast_to_xml_str(ast)); } + return NULL; } static Int_t ast_to_int(env_t *env, ast_t *ast) @@ -184,6 +186,7 @@ static Int_t ast_to_int(env_t *env, ast_t *ast) } default: print_err("Cannot convert to integer"); } + return I(0); } // static double ast_to_num(env_t *env, ast_t *ast) |
