diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-11 13:28:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-12 22:49:16 +0300 |
commit | d434cdd4f7471b8526a44d1d6834f7e3c9c92eb7 (patch) | |
tree | f8e365bd14d81742642348978fd591876e85cef8 | |
parent | 6a5636ddf61e4fca9d258c11ebead182564f234f (diff) | |
download | hercules-d434cdd4f7471b8526a44d1d6834f7e3c9c92eb7.tar.gz hercules-d434cdd4f7471b8526a44d1d6834f7e3c9c92eb7.tar.bz2 hercules-d434cdd4f7471b8526a44d1d6834f7e3c9c92eb7.tar.xz hercules-d434cdd4f7471b8526a44d1d6834f7e3c9c92eb7.zip |
Remove from configure warning block maybe-uninitialized.
This flag hide some usefull warnings.
-rwxr-xr-x | configure | 90 | ||||
-rw-r--r-- | configure.in | 1 |
2 files changed, 1 insertions, 90 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in 2ae9f0c. +# From configure.in 94e07ca. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # @@ -5196,94 +5196,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-maybe-uninitialized" >&5 -$as_echo_n "checking whether $CC supports -Wno-maybe-uninitialized... " >&6; } - OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror -Wno-maybe-uninitialized" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int foo; -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - # Recent versions of gcc don't fail if -Wno-foo is not recognized - # (unless there are also other warnings), so we also check for -Wfoo - # which always fails if not supported - CFLAGS="$OLD_CFLAGS -Werror -Wmaybe-uninitialized" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int foo; -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - CFLAGS="$OLD_CFLAGS -Wno-maybe-uninitialized" - # Optionally, run a test - if test "x" != "x"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC can actually use -Wno-maybe-uninitialized" >&5 -$as_echo_n "checking whether $CC can actually use -Wno-maybe-uninitialized... " >&6; } - CFLAGS="$OLD_CFLAGS -Werror -Wmaybe-uninitialized" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed but enabled" >&5 -$as_echo "not needed but enabled" >&6; } - CFLAGS="$OLD_CFLAGS" - -else - - CFLAGS="$OLD_CFLAGS -Werror -Wno-maybe-uninitialized" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - CFLAGS="$OLD_CFLAGS -Wno-maybe-uninitialized" - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - CFLAGS="$OLD_CFLAGS" - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - fi - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - CFLAGS="$OLD_CFLAGS" - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - CFLAGS="$OLD_CFLAGS" - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-clobbered" >&5 $as_echo_n "checking whether $CC supports -Wno-clobbered... " >&6; } OLD_CFLAGS="$CFLAGS" diff --git a/configure.in b/configure.in index ec3b1f735..685e256cb 100644 --- a/configure.in +++ b/configure.in @@ -748,7 +748,6 @@ AC_DEFUN(AC_CHECK_COMPILER_WNOFLAG, ) AC_CHECK_COMPILER_WNOFLAG(unused-parameter, [int foo(int bar) { return 0; }]) -AC_CHECK_COMPILER_WNOFLAG(maybe-uninitialized) AC_CHECK_COMPILER_WNOFLAG(clobbered) AC_CHECK_COMPILER_WFLAG(empty-body) AC_CHECK_COMPILER_WFLAG(newline-eof) |