From: Richard Russon Date: Mon, 5 Jun 2017 16:25:33 +0000 (+0100) Subject: drop configure option --disable-warnings X-Git-Tag: neomutt-20170707~53^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a463faedb373a9095e1ceec39632f57243839d1;p=neomutt drop configure option --disable-warnings Always enable the warnings. --- 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,