Fixed compiler warnings

This commit is contained in:
Alex 2022-12-29 05:29:27 +02:00
parent 3f166b97c7
commit b236ca54ee
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
3 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#include "../kernel.h"
EXTERNC __attribute__((weak)) uintptr_t __stack_chk_guard = 0;
/* EXTERNC */ __attribute__((weak)) uintptr_t __stack_chk_guard = 0;
EXTERNC __attribute__((weak, no_stack_protector)) uintptr_t __stack_chk_guard_init(void)
{

View File

@ -246,6 +246,8 @@ EXTERNC __no_stack_protector __no_instrument_function void Entry(BootInfo *Info)
Main(Info);
}
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
EXTERNC __no_stack_protector __no_instrument_function void BeforeShutdown()
{
/* TODO: Announce shutdown */

View File

@ -96,7 +96,7 @@ struct __cxa_exception
_Unwind_Exception unwindHeader;
};
extern void *__dso_handle = 0;
/* extern */ void *__dso_handle = 0;
atexit_func_entry_t __atexit_funcs[ATEXIT_MAX_FUNCS];
uarch_t __atexit_func_count = 0;