From 6f9ad17b37a782a142df2f9c40dae64e4407a64c Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 7 May 2012 17:25:43 -0500 Subject: [PATCH] Added -ansi -pedantic with gcc. --- configure.ac | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index ece8090..ee79a0a 100644 --- a/configure.ac +++ b/configure.ac @@ -208,16 +208,18 @@ 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_common_flags="-ansi -pedantic -Wall" if test "$nmh_cv_has_wextra" = "yes"; then - nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered -Wno-pointer-sign" + nmh_gcc_warnflags="${nmh_gcc_common_flags} -Wextra -Wno-clobbered "\ +"-Wno-pointer-sign" else - nmh_gcc_warnflags="-Wall -Wno-pointer-sign" + nmh_gcc_warnflags="${nmh_gcc_common_flags} -Wno-pointer-sign" fi else if test "$nmh_cv_has_wextra" = "yes"; then - nmh_gcc_warnflags="-Wall -Wextra -Wno-clobbered" + nmh_gcc_warnflags="${nmh_gcc_common_flags} -Wextra -Wno-clobbered" else - nmh_gcc_warnflags="-Wall" + nmh_gcc_warnflags="${nmh_gcc_common_flags}" fi fi -- 1.7.10.4