aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-07-19 19:01:00 +0800
committerfanquake <fanquake@gmail.com>2020-07-19 19:25:44 +0800
commit476436b2dec254bb988f8c7a6cbec1d7bb7cecfd (patch)
tree642ada5a447e39e87a3b42c01cb3122b7681ac4d
parent090d87716074434bdc6c7656ec44d049197a793a (diff)
parent1cdc2a642b8b5dab7a830b5d7262add5363400db (diff)
Merge #19551: fuzz: fix unused variable compiler warning in addrdb
1cdc2a642b8b5dab7a830b5d7262add5363400db fuzz: fix unused variable addrdb compiler warning (Jon Atack) Pull request description: Fixes #19549 ACKs for top commit: hebasto: ACK 1cdc2a642b8b5dab7a830b5d7262add5363400db, tested on Linux Mint 20 (x86_64, clang 10.0). MarcoFalke: review re-ACK 1cdc2a642b8b5dab7a830b5d7262add5363400db practicalswift: ACK 1cdc2a642b8b5dab7a830b5d7262add5363400db Tree-SHA512: 5ce5ce06f0a3121911ae2ac4ed3953e5e56e6a7bd50a60ee6df84873eec75d2997488d2435bd55294e890bbf6fc368dd4302cf2a6ab6073ec74c7711eb0340e1
-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
}