From 3bec42fdf01eb3f7403876979023ad952228ee73 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 6 May 2019 16:29:40 +0200 Subject: CMake: Enforce "override" use on overriden methods This ensures that we do not accidentally stop overriding a method because it's signature changed in an API break. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a06da34f..1e90b3a91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,8 @@ add_optional_compile_options(Wnoexcept) add_optional_compile_options(Wsign-promo) add_optional_compile_options(Wundef) add_optional_compile_options(Wdouble-promotion) - +add_optional_compile_options(Wsuggest-override) +add_optional_compile_options(Werror=suggest-override) # apt-ftparchive dependencies find_package(BerkeleyDB REQUIRED) if (BERKELEY_DB_FOUND) -- cgit v1.2.3