]> granicus.if.org Git - neomutt/commitdiff
drop configure option --disable-warnings
authorRichard Russon <rich@flatcap.org>
Mon, 5 Jun 2017 16:25:33 +0000 (17:25 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 10 Jun 2017 14:24:11 +0000 (15:24 +0100)
Always enable the warnings.

configure.ac

index 9565b39276c4e8fa86c70b74fdfae2d5cd899ad8..dec2f79e338d7846ebc67114760658e1a49f0690 100644 (file)
@@ -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,