summaryrefslogtreecommitdiff
path: root/Kernel/Net
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-12-04 10:09:09 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-11 13:14:15 -0800
commit4a81b33c07cbb440c7fefcc073e94e113feeac52 (patch)
tree8cad5817266b1a99a484b95338d7992f2c147e6a /Kernel/Net
parent813593a485671e78f17c4e79f1ce12c31dd35aa6 (diff)
downloadserenity-4a81b33c07cbb440c7fefcc073e94e113feeac52.zip
Everywhere: Fix -Winconsistent-missing-override warnings from Clang
This option is already enabled when building Lagom, so let's enable it for the main build too. We will no longer be surprised by Lagom Clang CI builds failing while everything compiles locally. Furthermore, the stronger `-Wsuggest-override` warning is enabled in this commit, which enforces the use of the `override` keyword in all classes, not just those which already have some methods marked as `override`. This works with both GCC and Clang.
Diffstat (limited to 'Kernel/Net')
-rw-r--r--Kernel/Net/NE2000NetworkAdapter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/NE2000NetworkAdapter.h b/Kernel/Net/NE2000NetworkAdapter.h
index b29d3b514a..f901a934ea 100644
--- a/Kernel/Net/NE2000NetworkAdapter.h
+++ b/Kernel/Net/NE2000NetworkAdapter.h
@@ -31,12 +31,12 @@ public:
// just assume that it's up.
return true;
}
- virtual i32 link_speed()
+ virtual i32 link_speed() override
{
// Can only do 10mbit..
return 10;
}
- virtual bool link_full_duplex() { return true; }
+ virtual bool link_full_duplex() override { return true; }
virtual StringView purpose() const override { return class_name(); }