X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.ac;h=ee79a0a578ec4bb16d634c82c060af3d727492ea;hb=e7129bf90a1b361e07365002379d8d2874c0f771;hp=ece809003c256357f9a947036e9bcb760640ffad;hpb=2337d83d410d6a64ad7707fe7f093fc654f66e4f;p=mmh 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