diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-06-24 14:04:41 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-03 01:56:31 +0430 |
commit | b97a00d4b1324e474f8ff37269773f93c2af2161 (patch) | |
tree | 90fa815a445fb54bfe6d5e7345f061f961468017 /Kernel/Devices/HID/MouseDevice.h | |
parent | 33a341f5e174a3ed78ac2bdf77dcdf4e51000396 (diff) | |
download | serenity-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/MouseDevice.h')
-rw-r--r-- | Kernel/Devices/HID/MouseDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/HID/MouseDevice.h b/Kernel/Devices/HID/MouseDevice.h index a0e3c35f75..bc0d112301 100644 --- a/Kernel/Devices/HID/MouseDevice.h +++ b/Kernel/Devices/HID/MouseDevice.h @@ -29,7 +29,7 @@ public: virtual bool can_write(const FileDescription&, size_t) const override { return true; } // ^HIDDevice - virtual Type instrument_type() const { return Type::Mouse; } + virtual Type instrument_type() const override { return Type::Mouse; } // ^Device virtual mode_t required_mode() const override { return 0440; } |