build: Remove unused visibility checks #30590
pull fanquake wants to merge 2 commits into bitcoin:master from fanquake:remove_unused_visibility changing 2 files +0 −32-
fanquake commented at 2:11 pm on August 5, 2024: memberThese 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.
-
build: remove check for __attribute__((visibility.. 37c9abdc43
-
build: remove check for __declspec(dllexport) bbcba09cd5
-
DrahtBot commented at 2:11 pm on August 5, 2024: contributor
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.
-
DrahtBot added the label Build system on Aug 5, 2024
-
hebasto added the label Needs CMake port on Aug 5, 2024
-
hebasto commented at 2:13 pm on August 5, 2024: memberConcept ACK on dropping unused staff.
-
theuni commented at 4:07 pm on August 5, 2024: member
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.
-
hebasto approved
-
hebasto commented at 4:27 pm on August 5, 2024: memberACK bbcba09cd5ca5fdd9055aaf64781125c5e505576. I’ve verified that neither
HAVE_DEFAULT_VISIBILITY_ATTRIBUTE
norHAVE_DLLEXPORT_ATTRIBUTE
are used or evaluated in the current codebase. -
DrahtBot requested review from theuni on Aug 5, 2024
-
TheCharlatan approved
-
TheCharlatan commented at 12:48 pm on August 6, 2024: contributor
ACK bbcba09cd5ca5fdd9055aaf64781125c5e505576
The
visibility("default")
attribute is still used insrc/tinyformat.h
, but I don’t think we need this check for that, since it is already gated. -
fanquake commented at 12:57 pm on August 6, 2024: member
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.
-
willcl-ark approved
-
willcl-ark commented at 3:28 pm on August 6, 2024: member
ACK bbcba09cd5ca5fdd9055aaf64781125c5e505576
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 becausemake distclean
does not remove the filesrc/config/bitcoin-config.h.in
(which I don’t think is worth tidying with a new build system on the way) -
fanquake merged this on Aug 6, 2024
-
fanquake closed this on Aug 6, 2024
-
fanquake deleted the branch on Aug 6, 2024
-
hebasto commented at 4:51 pm on August 6, 2024: memberPorted to the CMake-based build system in https://github.com/hebasto/bitcoin/pull/307.
-
hebasto removed the label Needs CMake port on Aug 6, 2024
-
hebasto referenced this in commit 3c740846bf on Aug 6, 2024
-
luke-jr referenced this in commit 15d313d702 on Feb 22, 2025
-
luke-jr referenced this in commit 0db85f1dc6 on Feb 22, 2025
-
luke-jr referenced this in commit f00f5d7db7 on Feb 24, 2025
-
luke-jr referenced this in commit 7e82b8de0c on Feb 24, 2025
-
luke-jr referenced this in commit 9c2947b20a on Feb 26, 2025
-
luke-jr referenced this in commit 60dcc84a5d on Feb 26, 2025
-
luke-jr referenced this in commit 8ea71e3156 on Feb 28, 2025
-
luke-jr referenced this in commit dfefa07a79 on Feb 28, 2025
-
luke-jr referenced this in commit a0e4d76712 on Mar 5, 2025
-
luke-jr referenced this in commit 99a645c28c on Mar 5, 2025
-
bitcoin locked this on Aug 6, 2025
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: 2025-08-08 12:13 UTC
More mirrored repositories can be found on mirror.b10c.me