From b236ca54ee19053462c7389e9aa2060bb73b7af5 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 29 Dec 2022 05:29:27 +0200 Subject: [PATCH] Fixed compiler warnings --- Core/StackGuard.cpp | 2 +- Kernel.cpp | 2 ++ Library/cxxabi.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/StackGuard.cpp b/Core/StackGuard.cpp index 555978b..9b8f9ee 100644 --- a/Core/StackGuard.cpp +++ b/Core/StackGuard.cpp @@ -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) { diff --git a/Kernel.cpp b/Kernel.cpp index f51a158..251a1ba 100644 --- a/Kernel.cpp +++ b/Kernel.cpp @@ -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 */ diff --git a/Library/cxxabi.cpp b/Library/cxxabi.cpp index d7b5b98..d5aa4b8 100644 --- a/Library/cxxabi.cpp +++ b/Library/cxxabi.cpp @@ -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;