Kernel: Check for GCC when ignoring Wmaybe-uninitialized
This commit is contained in:
parent
437fa45ca2
commit
b9fe564d78
|
@ -60,7 +60,9 @@ namespace Kernel
|
|||
ret = sys_fork_trampoline();
|
||||
else
|
||||
#pragma GCC diagnostic push
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic warning "-Wmaybe-uninitialized"
|
||||
#endif
|
||||
ret = (Process::current().*s_syscall_handlers[syscall])(arg1, arg2, arg3, arg4, arg5);
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
|
|
Loading…
Reference in New Issue