bug#79567: [PATCH] maint: pacify -Werror=trailing-whitespace

Grisha Levit <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
* configure.ac (FORTIFY_SOURCE): Fix indentation.
---
 configure.ac | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

There is code [1] in gnulib that disables this warning for config.h but
it is meant to be temporary and once removed would cause this snippet to
trigger a failure.

[1] https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/?id=ff19eeafbee

diff --git a/configure.ac b/configure.ac
index a7432e0a7..8270fe3a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -221,12 +221,12 @@ if test $gl_gcc_warnings != no; then
 
   AC_DEFINE([lint], [1], [Define to 1 if the compiler is checking for lint.])
   AH_VERBATIM([FORTIFY_SOURCE],
-  [/* Enable compile-time and run-time bounds-checking, and some warnings,
-      without upsetting glibc 2.15+. */
-   #if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
-   # define _FORTIFY_SOURCE 2
-   #endif
-  ])
+[/* Enable compile-time and run-time bounds-checking, and some warnings,
+   without upsetting glibc 2.15+. */
+#if !defined _FORTIFY_SOURCE && defined __OPTIMIZE__ && __OPTIMIZE__
+# define _FORTIFY_SOURCE 2
+#endif
+])
   AC_DEFINE([GNULIB_PORTCHECK], [1], [enable some gnulib portability checks])
 
   # We use a slightly smaller set of warning options for lib/.
-- 
2.51.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.