aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-07-19 07:13:16 +0200
committerJon Atack <jon@atack.com>2020-07-19 08:31:34 +0200
commit1cdc2a642b8b5dab7a830b5d7262add5363400db (patch)
tree642ada5a447e39e87a3b42c01cb3122b7681ac4d /src/test/fuzz
parent090d87716074434bdc6c7656ec44d049197a793a (diff)
fuzz: fix unused variable addrdb compiler warning
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/addrdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/addrdb.cpp b/src/test/fuzz/addrdb.cpp
index ad6461650f..16b1cb755a 100644
--- a/src/test/fuzz/addrdb.cpp
+++ b/src/test/fuzz/addrdb.cpp
@@ -17,6 +17,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
{
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
+ // The point of this code is to exercise all CBanEntry constructors.
const CBanEntry ban_entry = [&] {
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 2)) {
case 0:
@@ -32,4 +33,5 @@ void test_one_input(const std::vector<uint8_t>& buffer)
}
return CBanEntry{};
}();
+ (void)ban_entry; // currently unused
}