diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-21 20:52:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 20:52:50 +0100 |
commit | 89688305539438aa421d07bb8459afb3e438d58f (patch) | |
tree | ee643063cd57d374896e8178ce975d77188990f5 | |
parent | f50e6b4d56cb99371af82f328dcad3dc6456e713 (diff) | |
parent | 39aa52502e7c2ff2981b4e51cf0217a6f7ac3538 (diff) |
Merge pull request #16619 from vespa-engine/toregge/eliminate-array-bounds-warning-3
Eliminate array bounds warning.
-rw-r--r-- | vespalib/src/tests/btree/btree_test.cpp | 4 | ||||
-rw-r--r-- | vespalib/src/tests/btree/btreeaggregation_test.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/vespalib/src/tests/btree/btree_test.cpp b/vespalib/src/tests/btree/btree_test.cpp index b71aca92cd6..ec2b37f9546 100644 --- a/vespalib/src/tests/btree/btree_test.cpp +++ b/vespalib/src/tests/btree/btree_test.cpp @@ -517,6 +517,8 @@ Test::requireThatNodeSplitInsertWorks() } } +namespace { + struct BTreeStealTraits { static constexpr size_t LEAF_SLOTS = 6; @@ -525,6 +527,8 @@ struct BTreeStealTraits static constexpr bool BINARY_SEEK = true; }; +} + void Test::requireThatNodeStealWorks() { diff --git a/vespalib/src/tests/btree/btreeaggregation_test.cpp b/vespalib/src/tests/btree/btreeaggregation_test.cpp index 9ce57dbaf1d..a50c160351a 100644 --- a/vespalib/src/tests/btree/btreeaggregation_test.cpp +++ b/vespalib/src/tests/btree/btreeaggregation_test.cpp @@ -596,6 +596,8 @@ Test::requireThatTreeInsertWorks() } } +namespace { + struct BTreeStealTraits { static constexpr size_t LEAF_SLOTS = 6; @@ -604,6 +606,8 @@ struct BTreeStealTraits static constexpr bool BINARY_SEEK = true; }; +} + void Test::requireThatNodeStealWorks() { |