From 16abac357358ec64c6bc1e3dfb82505d6d874a44 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 29 Nov 2022 02:23:47 +0400 Subject: [PATCH] Fix compiler warning --- src/libc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libc.c b/src/libc.c index 1c8721e..4b45a41 100644 --- a/src/libc.c +++ b/src/libc.c @@ -2,6 +2,8 @@ #include +#include +#include #include #include #include @@ -42,6 +44,10 @@ void my_exit(const int status) { kernaux_drivers_console_printf("exit: %d\n", status); kernaux_drivers_shutdown_poweroff(); + + // TODO: libkernaux shutdown poweroff noreturn + volatile int x = 0; + for (;;) ++x; } void *my_calloc(size_t nmemb, size_t size)