Error while making #20950

issue robinh007d opened this issue on January 16, 2021
  1. robinh007d commented at 11:59 AM on January 16, 2021: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    I was making and an error came up Expected behavior

    <!--- What behavior did you expect? -->

    no errors Actual behavior

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    CXX libbitcoin_server_a-txmempool.o txmempool.cpp: In member function ‘CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>&) const’: txmempool.cpp:883:29: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized] 883 | return Optional<txiter>{};

    To reproduce

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    happens everytime System information

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    github latest version

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    linux amd cpu nvme disk

    <!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

    CXX libbitcoin_server_a-txmempool.o txmempool.cpp: In member function ‘CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>&) const’: txmempool.cpp:883:29: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized] 883 | return Optional<txiter>{};

  2. robinh007d added the label Bug on Jan 16, 2021
  3. prusnak commented at 1:36 PM on January 16, 2021: contributor
    1. this is warning, not an error
    2. i don't see return Optional{}; on line 883 of master - are you sure you are on the latest commit?
  4. robinh007d commented at 1:40 PM on January 16, 2021: none

    phew, only 1 warning when i make

    am i on the latest commit? im not entirely sure...

    git clone https://github.com/bitcoin/bitcoin.git

    this is what i used

  5. prusnak commented at 1:56 PM on January 16, 2021: contributor

    Type git rev-parse HEAD to get the commit you are on.

    If it's not 30e664dcce1a9adb9ba9a29e4f0cf809767870dd you are not on the latest commit and you need to do git pull.

  6. robinh007d commented at 2:01 PM on January 16, 2021: none

    Ok thanks alot

  7. robinh007d closed this on Jan 16, 2021

  8. fanquake locked this on Jan 20, 2021
Contributors
Labels

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-25 00:14 UTC

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