From 40dcbf580d8eb31a067b62bf9676099919b9841e Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 13 Aug 2025 10:35:49 +0100 Subject: [PATCH] build: add -Wtrailing-whitespace=any This is available in GCC 15. See https://gcc.gnu.org/gcc-15/changes.html. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77be7e6caf0..7063babea02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -464,6 +464,7 @@ else() 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