Fix missing destructor in class #16686

pull BlockMechanic wants to merge 1 commits into bitcoin:master from BlockMechanic:master changing 1 files +2 −0
  1. BlockMechanic commented at 8:24 PM on August 22, 2019: contributor

    Fixes missing destructor in abstract class CBlockHeader. Not an error but introduces annoying warnings if compiling with clang.

    Issue reported here:- https://github.com/bitcoin/bitcoin/issues/16685

  2. Fix missing destructor in class
    Fixes missing destructor in abstract class CBlockHeader. Not an error but introduces annoying warnings if compiling with clang.
    7d8f0e8fa5
  3. hebasto commented at 6:27 AM on August 23, 2019: member

    @BlockMechanic

    Fixes missing destructor in abstract class CBlockHeader.

    The CBlockHeader is not an abstract class.

    But it is a base class from which the CBlock class is derived: https://github.com/bitcoin/bitcoin/blob/43eaf76e02679408ee43489b3961f845a9eb3f7f/src/primitives/block.h#L72

    Not an error but introduces annoying warnings if compiling with clang.

    Could be an UB.

    https://en.cppreference.com/w/cpp/language/destructor:

    Deleting an object through pointer to base invokes undefined behavior unless the destructor in the base class is virtual.

    The bottom line: @BlockMechanic could you update the PR description?

  4. DrahtBot commented at 5:40 AM on August 24, 2019: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #16539 (wallet: lower -txmaxfee default from 0.1 to 0.01 BTC by Sjors)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  5. BlockMechanic commented at 9:42 AM on August 24, 2019: contributor

    Nope, withdrawn. was resolved after i figured out a cxx flag issue. Thanks !

  6. BlockMechanic closed this on Aug 24, 2019

  7. DrahtBot locked this on Dec 16, 2021

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-22 18:14 UTC

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