From d7659cd7e6f883088081c9e782d8a3fa40da210a Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 13 May 2025 15:19:53 +0100 Subject: [PATCH] build: add -Wleading-whitespace=spaces 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 3749cf7c60e..77be7e6caf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -463,6 +463,7 @@ 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) # Some compilers (gcc) ignore unknown -Wno-* options, but warn about all # unknown options if any other warning is produced. Test the -Wfoo case, and