aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2025-04-19 19:29:05 -0700
committerPaul Eggert2025-04-19 19:31:27 -0700
commit589f596c96964ecf5e736a4b3b674ede4b193910 (patch)
tree971d8a25f0550a2929ebc846a2abe866953f5661
parente2fb12a40ca2b90dfedbfe916ed8a87345ca89f1 (diff)
downloademacs-589f596c96964ecf5e736a4b3b674ede4b193910.tar.gz
emacs-589f596c96964ecf5e736a4b3b674ede4b193910.zip
Use -Wtrailing-whitespace when warning
* configure.ac: When enabling GCC warnings, enable GCC 15’s new -Wtrailing-whitespace option if available, as that’s the Emacs style.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8b26d0882f3..eeb5f40d246 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1851,6 +1851,7 @@ AS_IF([test $gl_gcc_warnings = no],
1851 gl_WARN_ADD([$w]) 1851 gl_WARN_ADD([$w])
1852 done 1852 done
1853 gl_WARN_ADD([-Wredundant-decls]) # Prefer this, as we don't use Bison. 1853 gl_WARN_ADD([-Wredundant-decls]) # Prefer this, as we don't use Bison.
1854 gl_WARN_ADD([-Wtrailing-whitespace]) # This project's coding style
1854 gl_WARN_ADD([-Wno-missing-field-initializers]) # We need this one 1855 gl_WARN_ADD([-Wno-missing-field-initializers]) # We need this one
1855 gl_WARN_ADD([-Wno-override-init]) # More trouble than it is worth 1856 gl_WARN_ADD([-Wno-override-init]) # More trouble than it is worth
1856 gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now 1857 gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now