diff options
author | rbuj <[email protected]> | 2020-04-08 11:12:36 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2020-04-08 18:00:21 +0200 |
commit | ee0ab31ac3d8a438e94ef35e35979447c57db14f (patch) | |
tree | dc505f7df88eb60d7c5a3c8419a48d5c90b52396 | |
parent | ef9f92c36b5926f397028e1a524f22ff96e321da (diff) | |
download | mate-applets-ee0ab31ac3d8a438e94ef35e35979447c57db14f.tar.bz2 mate-applets-ee0ab31ac3d8a438e94ef35e35979447c57db14f.tar.xz |
build: Remove --enable-more-warnings configure flag
-rw-r--r-- | configure.ac | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/configure.ac b/configure.ac index 5839f41c..2cd90943 100644 --- a/configure.ac +++ b/configure.ac @@ -45,46 +45,6 @@ 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 *************************************************************************** |