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.
This commit is contained in:
Bananymous 2024-09-22 17:15:07 +03:00
parent 60d5257678
commit ae89237453
1 changed files with 3 additions and 0 deletions

View File

@ -59,7 +59,10 @@ namespace Kernel
else if (syscall == SYS_FORK) else if (syscall == SYS_FORK)
ret = sys_fork_trampoline(); ret = sys_fork_trampoline();
else else
#pragma GCC diagnostic push
#pragma GCC diagnostic warning "-Wmaybe-uninitialized"
ret = (Process::current().*s_syscall_handlers[syscall])(arg1, arg2, arg3, arg4, arg5); ret = (Process::current().*s_syscall_handlers[syscall])(arg1, arg2, arg3, arg4, arg5);
#pragma GCC diagnostic pop
asm volatile("cli"); asm volatile("cli");