summaryrefslogtreecommitdiff
path: root/Kernel/Devices/HID/KeyboardDevice.h
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-06-24 14:04:41 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-03 01:56:31 +0430
commitb97a00d4b1324e474f8ff37269773f93c2af2161 (patch)
tree90fa815a445fb54bfe6d5e7345f061f961468017 /Kernel/Devices/HID/KeyboardDevice.h
parent33a341f5e174a3ed78ac2bdf77dcdf4e51000396 (diff)
downloadserenity-b97a00d4b1324e474f8ff37269773f93c2af2161.zip
Kernel: Add missing override specifiers
The `#pragma GCC diagnostic` part is needed because the class has virtual methods with the same name but different arguments, and Clang tries to warn us that we are not actually overriding anything with these. Weirdly enough, GCC does not seem to care.
Diffstat (limited to 'Kernel/Devices/HID/KeyboardDevice.h')
-rw-r--r--Kernel/Devices/HID/KeyboardDevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/HID/KeyboardDevice.h b/Kernel/Devices/HID/KeyboardDevice.h
index 35585d6836..28a9a77d35 100644
--- a/Kernel/Devices/HID/KeyboardDevice.h
+++ b/Kernel/Devices/HID/KeyboardDevice.h
@@ -30,7 +30,7 @@ public:
virtual bool can_write(const FileDescription&, size_t) const override { return true; }
// ^HIDDevice
- virtual Type instrument_type() const { return Type::Keyboard; }
+ virtual Type instrument_type() const override { return Type::Keyboard; }
// ^Device
virtual mode_t required_mode() const override { return 0440; }