From 26922ebb514aee62665c49068759b342d3ef060c Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 22 Apr 2024 21:10:04 +0300 Subject: [PATCH] Kernel: Remove stack size check for keyboard layout initialization Keyboard layout loading can take around 1 KB of stack for i686 target --- kernel/kernel/Input/KeyboardLayout.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kernel/Input/KeyboardLayout.cpp b/kernel/kernel/Input/KeyboardLayout.cpp index 603ce2e6e3..052d67e651 100644 --- a/kernel/kernel/Input/KeyboardLayout.cpp +++ b/kernel/kernel/Input/KeyboardLayout.cpp @@ -273,6 +273,8 @@ namespace Kernel::Input return {}; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstack-usage=" static BAN::ErrorOr initialize_name_to_key() { ASSERT(s_name_to_key.empty()); @@ -431,5 +433,6 @@ namespace Kernel::Input TRY(s_name_to_key.insert("Z"sv, Key::Z)); return {}; } +#pragma GCC diagnostic pop }