From: Paul Eggert Date: Sun, 20 Apr 2025 02:29:05 +0000 (-0700) Subject: Use -Wtrailing-whitespace when warning X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3d868670b8b1cbfc95cc470beed49cece576f397;p=emacs.git 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. (cherry picked from commit 589f596c96964ecf5e736a4b3b674ede4b193910) --- diff --git a/configure.ac b/configure.ac index 25454f54b10..f4c11655b98 100644 --- a/configure.ac +++ b/configure.ac @@ -1851,6 +1851,7 @@ AS_IF([test $gl_gcc_warnings = no], gl_WARN_ADD([$w]) done gl_WARN_ADD([-Wredundant-decls]) # Prefer this, as we don't use Bison. + gl_WARN_ADD([-Wtrailing-whitespace]) # This project's coding style gl_WARN_ADD([-Wno-missing-field-initializers]) # We need this one gl_WARN_ADD([-Wno-override-init]) # More trouble than it is worth gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now