From aed41cf9a0dde045bf93c9241dfdd62d75fe3d18 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 25 May 2012 14:36:32 +0200 Subject: [PATCH] maint: space changes * configure.ac, src/complain.c: space changes. --- configure.ac | 3 ++- src/complain.c | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 95a1b026..0facd4ab 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,7 @@ if test "$enable_gcc_warnings" = yes; then warn_c='-Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wstrict-prototypes' warn_cxx='-Wnoexcept' + AC_LANG_PUSH([C]) for i in $warn_common $warn_c; do @@ -89,7 +90,7 @@ if test "$enable_gcc_warnings" = yes; then do gl_WARN_ADD([$i], [WARN_CXXFLAGS]) done - gl_WARN_ADD([ -Wzero-as-null-pointer-constant], [WARN_CXXFLAGS], + gl_WARN_ADD([-Wzero-as-null-pointer-constant], [WARN_CXXFLAGS], [AC_LANG_PROGRAM([], [nullptr])]) gl_WARN_ADD([-Werror], [WERROR_CXXFLAGS]) # Warnings for the test suite only. diff --git a/src/complain.c b/src/complain.c index 18432b49..6c7a8ec8 100644 --- a/src/complain.c +++ b/src/complain.c @@ -74,10 +74,11 @@ error_message (location *loc, vfprintf (stderr, message, args); { size_t l = strlen (message); - if (l < 2 || message[l-2] != ':' || message[l-1] != ' ') { - putc ('\n', stderr); - fflush (stderr); - } + if (l < 2 || message[l-2] != ':' || message[l-1] != ' ') + { + putc ('\n', stderr); + fflush (stderr); + } } } -- 2.45.2