summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-02-21 22:46:53 +0100
committerGitHub <noreply@github.com>2021-02-21 22:46:53 +0100
commiteaaeaf82d016ed8edd081bc63faafaa756aa35fe (patch)
treefd55d65d6026ef19e563b601aa61a0d98d62258a
parent89688305539438aa421d07bb8459afb3e438d58f (diff)
parent3ba3f25521b21bf84e718a027d67027860b7b79b (diff)
Merge pull request #16622 from vespa-engine/toregge/mark-potentially-unused-traits-member-as-maybe-unused
Mark potentially unused traits member as unused.
-rw-r--r--vespalib/src/tests/btree/btree_test.cpp2
-rw-r--r--vespalib/src/tests/btree/btreeaggregation_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/tests/btree/btree_test.cpp b/vespalib/src/tests/btree/btree_test.cpp
index ec2b37f9546..cd4c2eccd07 100644
--- a/vespalib/src/tests/btree/btree_test.cpp
+++ b/vespalib/src/tests/btree/btree_test.cpp
@@ -524,7 +524,7 @@ struct BTreeStealTraits
static constexpr size_t LEAF_SLOTS = 6;
static constexpr size_t INTERNAL_SLOTS = 6;
static constexpr size_t PATH_SIZE = 20;
- static constexpr bool BINARY_SEEK = true;
+ [[maybe_unused]] static constexpr bool BINARY_SEEK = true;
};
}
diff --git a/vespalib/src/tests/btree/btreeaggregation_test.cpp b/vespalib/src/tests/btree/btreeaggregation_test.cpp
index a50c160351a..d077d5ee4a7 100644
--- a/vespalib/src/tests/btree/btreeaggregation_test.cpp
+++ b/vespalib/src/tests/btree/btreeaggregation_test.cpp
@@ -603,7 +603,7 @@ struct BTreeStealTraits
static constexpr size_t LEAF_SLOTS = 6;
static constexpr size_t INTERNAL_SLOTS = 6;
static constexpr size_t PATH_SIZE = 20;
- static constexpr bool BINARY_SEEK = true;
+ [[maybe_unused]] static constexpr bool BINARY_SEEK = true;
};
}