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
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
Fixes missing destructor in abstract class CBlockHeader. Not an error but introduces annoying warnings if compiling with clang.
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?
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
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.
Nope, withdrawn. was resolved after i figured out a cxx flag issue. Thanks !