aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/btree
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-02-24 23:55:35 +0100
committerTor Egge <Tor.Egge@online.no>2022-02-24 23:55:35 +0100
commitfbf5cf0b6c0aa14416c85be08c80f60b0e73c3aa (patch)
treeac8b0d7b088790321777aa4ae186deb4d1a6b65b /vespalib/src/tests/btree
parenta2815ee7b7680c0387fc6ee907dd9f000fa197d5 (diff)
Eliminate gcc compiler warnings when using old version of gtest (< 1.11).
Diffstat (limited to 'vespalib/src/tests/btree')
-rw-r--r--vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp b/vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp
index a826d5b05d7..95ee39c6507 100644
--- a/vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp
+++ b/vespalib/src/tests/btree/btree-stress/btree_stress_test.cpp
@@ -359,6 +359,12 @@ using TestTypes = testing::Types<DirectKeyValueParams, IndirectKeyValueParams>;
VESPA_GTEST_TYPED_TEST_SUITE(BTreeStressTest, TestTypes);
+// Disable warnings emitted by gtest generated files when using typed tests
+#pragma GCC diagnostic push
+#ifndef __clang__
+#pragma GCC diagnostic ignored "-Wsuggest-override"
+#endif
+
TYPED_TEST(BTreeStressTest, basic_lower_bound)
{
this->basic_lower_bound();
@@ -379,4 +385,6 @@ TYPED_TEST(BTreeStressTest, multiple_lower_bound_readers_during_updates)
this->multiple_lower_bound_readers_during_updates();
}
+#pragma GCC diagnostic pop
+
GTEST_MAIN_RUN_ALL_TESTS()