This PR removes trailing whitespace and introduces the -Wtrailing-whitespace=any compiler flag. This enforces the rule from CONTRIBUTING.md (“Avoid trailing whitespace”) directly in the CI.
This fix is required to unbreak Bitcoin Core CI builds using GCC 15 after merging https://github.com/bitcoin/bitcoin/pull/34412.