Fix compiler warning

This commit is contained in:
Alex Kotov 2022-11-29 02:23:47 +04:00
parent b8c88ee3e8
commit 16abac3573
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include <stdlib.h>
#include <kernaux/drivers/console.h>
#include <kernaux/drivers/shutdown.h>
#include <kernaux/generic/malloc.h>
#include <kernaux/free_list.h>
#include <kernaux/libc.h>
@ -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)