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/stdlib/stdlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/stdlib/stdlib.c') diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 6332c69d..88553f54 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -43,8 +43,9 @@ static ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) { public bool USE_COLOR; -static _Noreturn void signal_handler(int sig, siginfo_t *, void *) +static _Noreturn void signal_handler(int sig, siginfo_t *info, void *userdata) { + (void)info, (void)userdata; assert(sig == SIGILL); fflush(stdout); if (USE_COLOR) fputs("\x1b[31;7m ===== ILLEGAL INSTRUCTION ===== \n\n\x1b[m", stderr); @@ -167,6 +168,7 @@ static bool parse_single_arg(const TypeInfo_t *info, char *arg, void *dest) Text_t t = generic_as_text(NULL, false, info); print_err("Unsupported type for argument parsing: ", t); } + return false; } static List_t parse_list(const TypeInfo_t *item_info, int n, char *args[]) -- cgit v1.2.3