diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-05-06 16:29:40 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-05-06 16:29:40 +0200 |
commit | 3bec42fdf01eb3f7403876979023ad952228ee73 (patch) | |
tree | 14757b951a856b43b0fd0ab899264af43613eef6 /CMakeLists.txt | |
parent | f6affb0a6e135ba8591be6623f880bd9344ce52a (diff) | |
download | apt-3bec42fdf01eb3f7403876979023ad952228ee73.tar.gz |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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) |