From ee0ab31ac3d8a438e94ef35e35979447c57db14f Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 8 Apr 2020 11:12:36 +0200 Subject: build: Remove --enable-more-warnings configure flag --- configure.ac | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/configure.ac b/configure.ac index 5839f41c..2cd90943 100644 --- a/configure.ac +++ b/configure.ac @@ -44,46 +44,6 @@ MATE_COMPILE_WARNINGS dnl Check for non-portable headers AC_CHECK_HEADERS([pty.h values.h]) -dnl *************************************************************************** -dnl *** --enable-more-warnings turns on more compiler warnings *** -dnl *************************************************************************** -AC_ARG_ENABLE(more-warnings, -[ --enable-more-warnings Maximum compiler warnings], -set_more_warnings="$enableval",[ - set_more_warnings=no -]) -AC_MSG_CHECKING(for more warnings, including -Werror) -if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then - AC_MSG_RESULT(yes) - CFLAGS="\ - -Wall \ - -Wextra \ - -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ - -Wnested-externs -Wpointer-arith \ - -Wcast-align -Wunused-but-set-variable \ - -Wformat-nonliteral -Wabsolute-value -Werror=format-security \ - $CFLAGS" - - for option in -Wno-strict-aliasing -Wno-sign-compare; do - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $option" - AC_MSG_CHECKING([whether gcc understands $option]) - AC_TRY_COMPILE([], [], - has_option=yes, - has_option=no,) - if test $has_option = no; then - CFLAGS="$SAVE_CFLAGS" - fi - AC_MSG_RESULT($has_option) - unset has_option - unset SAVE_CFLAGS - done - unset option -else - AC_MSG_RESULT(no) -fi -dnl *************************************************************************** - dnl *************************************************************************** dnl *** Use pkg-config to check for dependencies *** dnl *************************************************************************** -- cgit v1.2.1