mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
fuzz: fix unused variable addrdb compiler warning
This commit is contained in:
parent
090d877160
commit
1cdc2a642b
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue