From ae89237453cedf6e6af9d4c241492b1c736fa808 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 22 Sep 2024 17:15:07 +0300 Subject: [PATCH] Kernel: Disable warning when calling syscall This warning is only generated when compiling with UBSAN and I don't see how the value would even be uninitialzed. --- kernel/kernel/Syscall.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kernel/Syscall.cpp b/kernel/kernel/Syscall.cpp index 0d56e67a8d..8a00bd1e83 100644 --- a/kernel/kernel/Syscall.cpp +++ b/kernel/kernel/Syscall.cpp @@ -59,7 +59,10 @@ namespace Kernel else if (syscall == SYS_FORK) ret = sys_fork_trampoline(); else +#pragma GCC diagnostic push +#pragma GCC diagnostic warning "-Wmaybe-uninitialized" ret = (Process::current().*s_syscall_handlers[syscall])(arg1, arg2, arg3, arg4, arg5); +#pragma GCC diagnostic pop asm volatile("cli");