Skip to content

Commit 476436b

Browse files
committed
Merge #19551: fuzz: fix unused variable compiler warning in addrdb
1cdc2a6 fuzz: fix unused variable addrdb compiler warning (Jon Atack) Pull request description: Fixes #19549 ACKs for top commit: hebasto: ACK 1cdc2a6, tested on Linux Mint 20 (x86_64, clang 10.0). MarcoFalke: review re-ACK 1cdc2a6 practicalswift: ACK 1cdc2a6 Tree-SHA512: 5ce5ce06f0a3121911ae2ac4ed3953e5e56e6a7bd50a60ee6df84873eec75d2997488d2435bd55294e890bbf6fc368dd4302cf2a6ab6073ec74c7711eb0340e1
2 parents 090d877 + 1cdc2a6 commit 476436b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/fuzz/addrdb.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
1717
{
1818
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
1919

20+
// The point of this code is to exercise all CBanEntry constructors.
2021
const CBanEntry ban_entry = [&] {
2122
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 2)) {
2223
case 0:
@@ -32,4 +33,5 @@ void test_one_input(const std::vector<uint8_t>& buffer)
3233
}
3334
return CBanEntry{};
3435
}();
36+
(void)ban_entry; // currently unused
3537
}

0 commit comments

Comments
 (0)