Build warning in `test/fuzz/addrdb.cpp`: unused variable #19549

issue jonatack opened this issue on July 18, 2020
  1. jonatack commented at 7:28 PM on July 18, 2020: member

    Seen both locally and in the Travis fuzz build:

    test/fuzz/addrdb.cpp:20:21: warning: unused variable 'ban_entry' [-Wunused-variable]
        const CBanEntry ban_entry = [&] {
                        ^
    1 warning generated.
    
  2. jonatack added the label Bug on Jul 18, 2020
  3. jonatack commented at 7:31 PM on July 18, 2020: member

    This code was added in a8695db7... pinging @practicalswift :)

  4. practicalswift commented at 10:41 PM on July 18, 2020: contributor

    (void)ban_entry should be enough to silence this warning.

    The point of the code is to exercise all CBanEntry ctors :)

  5. fanquake added the label Tests on Jul 19, 2020
  6. jonatack commented at 5:10 AM on July 19, 2020: member

    Oh yes, just like #18664. I should have remembered -- thanks!

  7. fanquake closed this on Jul 19, 2020

  8. DrahtBot locked this on Feb 15, 2022
  9. PastaPastaPasta referenced this in commit b38a1ac5dc on Jul 17, 2022
  10. PastaPastaPasta referenced this in commit e25392f0a7 on Aug 30, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me