Skip to content

Commit 40dcbf5

Browse files
committed
build: add -Wtrailing-whitespace=any
This is available in GCC 15. See https://gcc.gnu.org/gcc-15/changes.html.
1 parent d7659cd commit 40dcbf5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ else()
464464
try_append_cxx_flags("-Wbidi-chars=any" TARGET warn_interface SKIP_LINK)
465465
try_append_cxx_flags("-Wundef" TARGET warn_interface SKIP_LINK)
466466
try_append_cxx_flags("-Wleading-whitespace=spaces" TARGET warn_interface SKIP_LINK)
467+
try_append_cxx_flags("-Wtrailing-whitespace=any" TARGET warn_interface SKIP_LINK)
467468

468469
# Some compilers (gcc) ignore unknown -Wno-* options, but warn about all
469470
# unknown options if any other warning is produced. Test the -Wfoo case, and

0 commit comments

Comments
 (0)