summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Tools
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 /Meta/Lagom/Tools
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 'Meta/Lagom/Tools')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp
index 0abc3bc693..b3d47c1f8d 100644
--- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp
@@ -416,7 +416,7 @@ public:
)~~~");
message_generator.append(R"~~~(
- virtual bool valid() const { return m_ipc_message_valid; }
+ virtual bool valid() const override { return m_ipc_message_valid; }
virtual IPC::MessageBuffer encode() const override
{