summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-05-06 16:29:40 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-05-06 16:29:40 +0200
commit3bec42fdf01eb3f7403876979023ad952228ee73 (patch)
tree14757b951a856b43b0fd0ab899264af43613eef6 /test
parentf6affb0a6e135ba8591be6623f880bd9344ce52a (diff)
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 'test')
-rw-r--r--test/libapt/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libapt/CMakeLists.txt b/test/libapt/CMakeLists.txt
index 57ef5ac3f..d44d77ad4 100644
--- a/test/libapt/CMakeLists.txt
+++ b/test/libapt/CMakeLists.txt
@@ -27,6 +27,8 @@ if(GTEST_FOUND)
# so disable the offending warnings while compiling tests for now
add_optional_compile_options(Wno-undef)
add_optional_compile_options(Wno-ctor-dtor-privacy)
+ # Do not force override for gtest, gtest is missing override specifiers
+ add_optional_compile_options(Wno-suggest-override)
# Definition of the C++ files used to build the test binary - note that this
# is expanded at CMake time, so you have to rerun cmake if you add or remove