Kernel: Check for GCC when ignoring Wmaybe-uninitialized

This commit is contained in:
Bananymous 2024-12-18 01:45:36 +02:00
parent 437fa45ca2
commit b9fe564d78
1 changed files with 2 additions and 0 deletions

View File

@ -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