From ef7ec09f68cf10e1f75630409c79ce573d979f1e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 24 Jul 2021 21:32:03 +0200 Subject: fix some warnings --- src/init/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/init') diff --git a/src/init/main.c b/src/init/main.c index 84475da..119984e 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -4,13 +4,13 @@ int _syscall(int, int, int, int); -void exit(const char *msg, size_t len) { - _syscall(SC_EXIT, (void*)msg, len, 0); +_Noreturn void exit(const char *msg, size_t len) { + _syscall(SC_EXIT, (int)msg, len, 0); __builtin_unreachable(); } int debuglog(const char *msg, size_t len) { - return _syscall(SC_DEBUGLOG, (void*)msg, len, 0); + return _syscall(SC_DEBUGLOG, (int)msg, len, 0); } -- cgit v1.2.3