From c74eb81356ef0e202713111d621434e46edc27ea Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Mon, 22 Jul 2024 17:15:57 +0200 Subject: enable -Werror=suggest-override *accidentally* overriding a function is almost guaranteed to be an error. overriding a function without labeling it as such is merely bad style, but bad style that makes the code harder to understand. Change-Id: Ic0594f3d1604ab6b3c1a75cb5facc246effe45f0 --- meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8ce06800b..0e74520ca 100644 --- a/meson.build +++ b/meson.build @@ -445,6 +445,7 @@ add_project_arguments( '-Werror=unused-result', '-Wdeprecated-copy', '-Wignored-qualifiers', + '-Werror=suggest-override', # Enable assertions in libstdc++ by default. Harmless on libc++. Benchmarked # at ~1% overhead in `nix search`. # -- cgit v1.2.3