diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-07-26 18:00:46 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-07-27 13:58:38 +0200 |
commit | 787296eb6744b15ab693c053e4030ff68dfc95e0 (patch) | |
tree | 46c970032e3f91195c7ca9950e4f061c650ea61f | |
parent | 1488f55fa57a1400a57be837b574183f019c7855 (diff) | |
download | bitcoin-787296eb6744b15ab693c053e4030ff68dfc95e0.tar.xz |
fuzz: silence a compiler warning about unused CBanEntry comparator
```
test/fuzz/banman.cpp:35:13: warning: unused function 'operator==' [-Wunused-function]
static bool operator==(const CBanEntry& lhs, const CBanEntry& rhs)
^
1 warning generated.
```
-rw-r--r-- | src/test/fuzz/banman.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/fuzz/banman.cpp b/src/test/fuzz/banman.cpp index 85a2ac990c..1986b5e4c8 100644 --- a/src/test/fuzz/banman.cpp +++ b/src/test/fuzz/banman.cpp @@ -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"); |