diff options
| author | Jon Atack <[email protected]> | 2020-07-19 07:13:16 +0200 |
|---|---|---|
| committer | Jon Atack <[email protected]> | 2020-07-19 08:31:34 +0200 |
| commit | 1cdc2a642b8b5dab7a830b5d7262add5363400db (patch) | |
| tree | 642ada5a447e39e87a3b42c01cb3122b7681ac4d | |
| parent | Merge #19143: tests: Add fuzzing harnesses for CAutoFile, CBufferedFile, Load... (diff) | |
| download | discoin-1cdc2a642b8b5dab7a830b5d7262add5363400db.tar.xz discoin-1cdc2a642b8b5dab7a830b5d7262add5363400db.zip | |
fuzz: fix unused variable addrdb compiler warning
| -rw-r--r-- | src/test/fuzz/addrdb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/addrdb.cpp b/src/test/fuzz/addrdb.cpp index ad6461650..16b1cb755 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 } |