1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

Kernel: Fix miscellaneous warnings when building with Clang

These small changes fix the remaining warnings that come up during
kernel compilation with Clang. These specific fixes were for benign
things: unused lambda captures and braces around scalar initializers.
This commit is contained in:
Daniel Bertalan 2021-07-01 10:55:13 +02:00 committed by Ali Mohammad Pur
parent 3c6bdb8a61
commit 42d197cde7
4 changed files with 4 additions and 5 deletions

View file

@ -69,7 +69,7 @@ void PS2KeyboardDevice::irq_handle_byte_read(u8 byte)
break;
default:
if ((m_modifiers & Mod_Alt) != 0 && ch >= 2 && ch <= ConsoleManagement::s_max_virtual_consoles + 1) {
g_io_work->queue([this, ch]() {
g_io_work->queue([ch]() {
ConsoleManagement::the().switch_to(ch - 0x02);
});
}