refactor: Silence GCC Wmissing-field-initializers in ChainstateManagerOpts #26409

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2210-gcc-🏾 changing 1 files +2 −2
  1. maflcko commented at 9:11 AM on October 28, 2022: member

    The std::optional fields in the struct that fall back to chain param defaults if not provided should be initialized to std::nullopt. This already happens with the current code.

    However, for consistency with check_block_index and to silence a GCC warning, add the "missing" {}.

  2. refactor: Silence GCC Wmissing-field-initializers in ChainstateManagerOpts fa29ef00ad
  3. DrahtBot added the label Refactoring on Oct 28, 2022
  4. hebasto approved
  5. hebasto commented at 9:53 AM on October 28, 2022: member

    ACK fa29ef00adac6f0842acdd38344820a1ce0e3087, tested on Ubuntu 22.04 + GCC 11.3.

  6. jonatack commented at 5:55 PM on October 28, 2022: contributor

    ACK fa29ef00adac6f0842acdd38344820a1ce0e3087

    Didn't test building with GCC (with Clang 14 yes) but the changes look correct.

  7. achow101 commented at 7:36 PM on October 28, 2022: member

    ACK fa29ef00adac6f0842acdd38344820a1ce0e3087

  8. achow101 merged this on Oct 28, 2022
  9. achow101 closed this on Oct 28, 2022

  10. maflcko deleted the branch on Oct 29, 2022
  11. sidhujag referenced this in commit b323a849eb on Oct 30, 2022
  12. bitcoin locked this on Oct 29, 2023

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-19 03:13 UTC

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