validation: -Wmaybe-uninitialized compiler warning thrown by CTxMempool::GetIterSet #21248

issue jarolrod openend this issue on February 20, 2021
  1. jarolrod commented at 7:26 pm on February 20, 2021: member

    When compiling from master, I get the following warning using GCC 10.2.1

    0txmempool.cpp: In member function CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>&) const:
    1txmempool.cpp:894:29: warning: <anonymous> may be used uninitialized in this function [-Wmaybe-uninitialized]
    2  894 |     return Optional<txiter>{};
    3      |                             ^
    

    System: OS: Debian Buster Compiler: GCC 10.2.1

    Steps to reproduce:

    • grab master
    • go through the compilation process
    • get -Wmaybe-uninitialized compiler warning
  2. jarolrod added the label Bug on Feb 20, 2021
  3. fanquake removed the label Bug on Feb 21, 2021
  4. fanquake commented at 2:08 am on February 21, 2021: member
    Thanks, however this is a false positive. See #20797, #20950, #20894.
  5. fanquake closed this on Feb 21, 2021

  6. fanquake referenced this in commit 5294f0d5a9 on Mar 22, 2021
  7. MarcoFalke referenced this in commit 786654aa5e on Mar 22, 2021
  8. sidhujag referenced this in commit 9f12fb3d2e on Mar 22, 2021
  9. DrahtBot locked this on Aug 18, 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: 2024-11-17 09:12 UTC

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