summaryrefslogtreecommitdiff
path: root/Kernel/Interrupts/IRQHandler.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/Interrupts/IRQHandler.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/Interrupts/IRQHandler.h')
-rw-r--r--Kernel/Interrupts/IRQHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Interrupts/IRQHandler.h b/Kernel/Interrupts/IRQHandler.h
index 08e2e9bd32..ffd8ec9f52 100644
--- a/Kernel/Interrupts/IRQHandler.h
+++ b/Kernel/Interrupts/IRQHandler.h
@@ -18,7 +18,7 @@ class IRQHandler : public GenericInterruptHandler {
public:
virtual ~IRQHandler();
- virtual bool handle_interrupt(const RegisterState& regs) { return handle_irq(regs); }
+ virtual bool handle_interrupt(const RegisterState& regs) override { return handle_irq(regs); }
virtual bool handle_irq(const RegisterState&) = 0;
void enable_irq();