Skip to content

Commit

Permalink
fuzz: silence a compiler warning about unused CBanEntry comparator
Browse files Browse the repository at this point in the history
```
test/fuzz/banman.cpp:35:13: warning: unused function 'operator==' [-Wunused-function]
static bool operator==(const CBanEntry& lhs, const CBanEntry& rhs)
            ^
1 warning generated.
```

Github-Pull: bitcoin#22557
Rebased-From: 787296e
  • Loading branch information
vasild authored and hebasto committed Aug 7, 2021
1 parent 3831932 commit 20c1331
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/fuzz/banman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ FUZZ_TARGET_INIT(banman, initialize_banman)
BanMan ban_man_read{banlist_file, /* client_interface */ nullptr, /* default_ban_time */ 0};
banmap_t banmap_read;
ban_man_read.GetBanned(banmap_read);
// Temporarily disabled to allow the remainder of the fuzz test to run while a fix is being worked on:
// assert(banmap == banmap_read);
// Assert temporarily disabled to allow the remainder of the fuzz test to run while a
// fix is being worked on. See https://github.com/bitcoin/bitcoin/pull/22517
(void)(banmap == banmap_read);
}
}
fs::remove(banlist_file.string() + ".dat");
Expand Down

0 comments on commit 20c1331

Please sign in to comment.