This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  4f2471026d69f8eeffa1b9403d96aca5e050399b (commit)
      from  c45b37ce0f7ac22ebd606269bbc7674f6b49370e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=4f2471026d69f8eeffa1b9403d96aca5e050399b


commit 4f2471026d69f8eeffa1b9403d96aca5e050399b
Author: David Levine <[email protected]>
Date:   Wed Jan 25 20:48:55 2012 -0600

    Updated config test to add -Wextra to be consistent with others.  So, it's 
back!

diff --git a/configure.ac b/configure.ac
index d73f376..37d7c23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -215,11 +215,10 @@ if test "$nmh_cv_has_unusedmacros" = 'yes'; then
 fi
 AC_SUBST(DISABLE_UNUSED_MACROS_WARNING)dnl
 
-AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_wextra],
+AC_CACHE_CHECK([whether compiler supports -Wextra], [nmh_cv_has_wextra],
 [nmh_saved_cflags="$CFLAGS"
  CFLAGS="$CFLAGS -Wextra -Wno-clobbered"
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
-   [nmh_cv_wextras=' -Wextra -Wno-clobbered'], [echo $ECHO_N "no$ECHO_C"])
+ AC_TRY_COMPILE([],[],nmh_cv_has_wextra=yes,nmh_cv_has_wextra=no)
  CFLAGS="$nmh_saved_cflags"])
 
 AC_CACHE_CHECK([whether compiler supports -Wno-pointer-sign], 
[nmh_cv_has_noptrsign],
@@ -237,9 +236,17 @@ dnl also use -Wno-pointer-sign, because gcc 4 now produces 
a lot of new
 dnl warnings which are probably mostly spurious and which in any case we
 dnl don't want to deal with now.
 if test "$nmh_cv_has_noptrsign" = "yes"; then
-        nmh_gcc_warnflags="-Wall$nmh_cv_wextra -Wno-pointer-sign"
+    if test "$nmh_cv_has_wextra" = "yes"; then
+        nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered -Wno-pointer-sign"
+    else
+        nmh_gcc_warnflags="-Wall -Wno-pointer-sign"
+    fi
 else
-        nmh_gcc_warnflags="-Wall$nmh_cv_wextra"
+    if test "$nmh_cv_has_wextra" = "yes"; then
+        nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered"
+    else
+        nmh_gcc_warnflags="-Wall"
+    fi
 fi
 
 if test -n "$auto_cflags"; then

-----------------------------------------------------------------------

Summary of changes:
 configure.ac |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System

_______________________________________________
Nmh-commits mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-commits

Reply via email to