mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02: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());
|
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
|
||||||
|
|
||||||
|
// The point of this code is to exercise all CBanEntry constructors.
|
||||||
const CBanEntry ban_entry = [&] {
|
const CBanEntry ban_entry = [&] {
|
||||||
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 2)) {
|
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 2)) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
@ -32,4 +33,5 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
||||||
}
|
}
|
||||||
return CBanEntry{};
|
return CBanEntry{};
|
||||||
}();
|
}();
|
||||||
|
(void)ban_entry; // currently unused
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue