forked from Bananymous/banan-os
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:
parent
60d5257678
commit
ae89237453
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue