What changed, and why it matters
This commit adds a new compiler warning flag that flags trailing whitespace in source code. It is a code-style/build-hygiene change, not a security fix. There is no vulnerability being patched.
No security action required; treat as a routine build-system cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change appends -Wtrailing-whitespace=any (GCC 15+) to the warn_interface target in CMakeLists.txt via try_append_cxx_flags, which only enables the warning if the compiler supports it. It does not alter runtime behavior, fix a bug, or address any reported security issue.
Changed components
CMakeLists.txt build configurationInspect captured patch +1 / −0
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77be7e6c..7063babe 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
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.