Skip to content

Conversation

fanquake
Copy link
Member

@fanquake fanquake commented Aug 5, 2024

These are unused (since libbitcoinconsensus / #29648), and the current CMake port doesn't quite match behaviour, such that there's no real point in doing the check. So rather than port anything, just remove it. If these are needed again in future (i.e for kernel or similar), they can be revisted, and it might be the case that build-system level checks will not be wanted.

@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 5, 2024

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK hebasto, TheCharlatan, willcl-ark
Concept ACK theuni

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@hebasto
Copy link
Member

hebasto commented Aug 5, 2024

Concept ACK on dropping unused staff.

Copy link
Member

@theuni theuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

We'll definitely want these back for the kernel at some point, yes. Though, sure, we can re-add them in a more modern way when the time comes.

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bbcba09. I've verified that neither HAVE_DEFAULT_VISIBILITY_ATTRIBUTE nor HAVE_DLLEXPORT_ATTRIBUTE are used or evaluated in the current codebase.

@DrahtBot DrahtBot requested a review from theuni August 5, 2024 16:27
Copy link
Contributor

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bbcba09

The visibility("default") attribute is still used in src/tinyformat.h, but I don't think we need this check for that, since it is already gated.

@fanquake
Copy link
Member Author

fanquake commented Aug 6, 2024

but I don't think we need this check for that, since it is already gated.

Yea. I think for our use, that (and related) code could also just be removed entirely.

Copy link
Member

@willcl-ark willcl-ark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK bbcba09

Makes sense to remove this while it's unused.

I did find a usage of HAVE_DEFAULT_VISIBILITY_ATTRIBUTE in my source dir, but it's only present because make distclean does not remove the file src/config/bitcoin-config.h.in (which I don't think is worth tidying with a new build system on the way)

@fanquake fanquake merged commit d7333ec into bitcoin:master Aug 6, 2024
16 checks passed
@fanquake fanquake deleted the remove_unused_visibility branch August 6, 2024 16:48
@hebasto
Copy link
Member

hebasto commented Aug 6, 2024

Ported to the CMake-based build system in hebasto#307.

hebasto added a commit to hebasto/bitcoin that referenced this pull request Aug 6, 2024
782ba0f fixup! cmake: Add introspection module (Hennadii Stepanov)

Pull request description:

  This PR ports bitcoin#30590.

ACKs for top commit:
  fanquake:
    ACK 782ba0f

Tree-SHA512: 89ec94cf40d2d39b01015e1c3b46e24e687861ce50be19e5fc6c5faa23a3ddfb8e3141caff27111490b79817cc13fc7b8dfd008325856b8436ae7d6f0ade55b1
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 22, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 22, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 24, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 24, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 26, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 26, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 28, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Feb 28, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Mar 5, 2025
luke-jr added a commit to bitcoinknots/bitcoin that referenced this pull request Mar 5, 2025
@bitcoin bitcoin locked and limited conversation to collaborators Aug 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants