From 2a463faedb373a9095e1ceec39632f57243839d1 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Mon, 5 Jun 2017 17:25:33 +0100 Subject: [PATCH] drop configure option --disable-warnings Always enable the warnings. --- configure.ac | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 9565b3927..dec2f79e3 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,8 @@ if test "$CC" = "gcc"; then CFLAGS="$CFLAGS -fno-delete-null-pointer-checks" fi +CFLAGS="-Wall -pedantic -Wno-long-long $CFLAGS" + AC_SEARCH_LIBS([strerror],[cposix]) if test "x$U" != "x"; then AC_MSG_ERROR(Compiler not ANSI compliant) @@ -623,16 +625,6 @@ if test $mutt_cv_fcntl = yes; then AC_DEFINE(USE_FCNTL,1, [ Define to use fcntl() to lock folders. ]) fi -mutt_cv_warnings=yes -AC_ARG_ENABLE(warnings, AS_HELP_STRING([--disable-warnings],[Turn off compiler warnings (not recommended)]), - [if test $enableval = no; then - mutt_cv_warnings=no - fi]) - -if test x$GCC = xyes && test $mutt_cv_warnings = yes; then - CFLAGS="-Wall -pedantic -Wno-long-long $CFLAGS" -fi - AC_ARG_ENABLE(nfs-fix, AS_HELP_STRING([--enable-nfs-fix],[Work around an NFS with broken attributes caching]), [if test x$enableval = xyes; then AC_DEFINE(NFS_ATTRIBUTE_HACK,1, -- 2.49.0