mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
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.
This commit is contained in:
parent
813593a485
commit
4a81b33c07
22 changed files with 45 additions and 45 deletions
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue