aboutsummaryrefslogtreecommitdiff
path: root/src/repl.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/repl.c
parentc3615dc92c667899af7a11b2b25201dad5502ee6 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repl.c b/src/repl.c
index 6ac07936..48bbfc7a 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -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)