-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: add -Wleading-whitespace
#32482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32482. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
Concept ACK on that.
I'll look into it. |
bf25a09 Squashed 'src/minisketch/' changes from d1e6bb8bbf..ea8f66b1ea (fanquake) Pull request description: Includes: * bitcoin-core/minisketch#89 * bitcoin-core/minisketch#94 (in #32482) ACKs for top commit: maflcko: lgtm ACK 46b533d willcl-ark: ACK 46b533d Tree-SHA512: 7655aa480381c711fd3397fc7031be4619d5bd67f9d68f7e69f5f903734e776b97f7a2384257b365fc4e1f504b9c97acfd4a355840d1064d4c2c2f259070f4ef
6f7fb28
to
d09af54
Compare
Addressed in #32648. |
d09af54
to
93087de
Compare
-W[leading|trailing]-whitespace
-Wleading-whitespace
Dropped |
93087de
to
5e26204
Compare
CMake 3.27 and newer handle this. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 5e26204.
The first two commits were reviewed using git diff --ignore-space-change
. Commit f238519 additionally removes an empty line, which is OK.
So
-Wtrailing-whitespace
could be enabled later, once Qts tooling is fixed.CMake 3.27 and newer handle this. The
CMP0151
policy must be set toNEW
.
As it is reasonable to expect CMake ≥3.27 on systems with GCC 15, I believe -Wtrailing-whitespace
can be reintroduced.
5e26204
to
a2984c8
Compare
a2984c8
to
bed4247
Compare
This is available in GCC 15. See https://gcc.gnu.org/gcc-15/changes.html.
This is available in GCC 15. See https://gcc.gnu.org/gcc-15/changes.html.
bed4247
to
8c60dc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core review ACK 8c60dc3
ACK b271b34 |
fe2c88a misc: drop trailing whitespace (fanquake) Pull request description: This came up downstream: bitcoin/bitcoin#32482 (comment). ACKs for top commit: l0rinc: ACK fe2c88a Tree-SHA512: db6e141c19b20e92e85d3dc21bd90aa6715260a739b87b0ee21a3865b30c52c92a1c09217a3b3090a3ee10499b5dca312a58fe5dfcec32044c447ce55a57c607
GCC 15 now has options to turn leading & trailing whitespace into compile failures: https://gcc.gnu.org/gcc-15/changes.html#c-family. Fix the few cases of leading tabs, and trailing whitespace, and then enable
-Wleading-whitespace
and-Wtrailing-whitespace
.