Merge bitcoin/bitcoin#32482: build: add -W*-whitespace
40dcbf580dbuild: add -Wtrailing-whitespace=any (fanquake)d7659cd7e6build: add -Wleading-whitespace=spaces (fanquake)d86650220acmake: Disable `-Wtrailing-whitespace` warnings for RCC-generated files (Hennadii Stepanov)aabc5ca6edcmake: Switch from AUTORCC to `qt6_add_resources` (Hennadii Stepanov)25ae14c339subprocess: replace tab with space (fanquake)0c2b9dadd5scripted-diff: remove whitespace in sha256_sse4.cpp (fanquake)4da084fbc9scripted-diff: change whitespace to spaces in univalue (fanquake)e6caf150b3ci: add moreutils to lint job (fanquake) Pull request description: 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`. We currently get PRs that are opened with various whitespace, i.e #33822, so turning that into compile-time failure where possible, seems useful, to avoid a CI roundtrip. ACKs for top commit: ajtowns: utACK40dcbf580dhebasto: re-ACK40dcbf580d. Tree-SHA512: a128001ab2abb41cd6d249dcf46be4167ebd608d6b0f1452212a3ec9a383747bea623ab0382ec7bc0ac7a232a47cca5174e1cd73d4eda6751aa3cb2365ad2ede
This commit is contained in:
6 files changed
+619
-608
No files matched your search
@@ -463,6 +463,8 @@ else()
|
||||
try_append_cxx_flags("-Wself-assign" TARGET warn_interface SKIP_LINK)
|
||||
try_append_cxx_flags("-Wbidi-chars=any" TARGET warn_interface SKIP_LINK)
|
||||
try_append_cxx_flags("-Wundef" TARGET warn_interface SKIP_LINK)
|
||||
try_append_cxx_flags("-Wleading-whitespace=spaces" TARGET warn_interface SKIP_LINK)
|
||||
try_append_cxx_flags("-Wtrailing-whitespace=any" TARGET warn_interface SKIP_LINK)
|
||||
|
||||
# Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
|
||||
# unknown options if any other warning is produced. Test the -Wfoo case, and
|
||||
|
||||
Reference in new issue
Block a user