From c93a2f3889818324e467bca592a29e4093da188d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 14 Jun 2009 14:58:53 -0700 Subject: [PATCH] Removed unused references to unreachable-code. --- configure.ac | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/configure.ac b/configure.ac index 9bb23a28..360b8b93 100644 --- a/configure.ac +++ b/configure.ac @@ -197,14 +197,7 @@ AC_ARG_ENABLE([coverage], [ac_coverage="$enableval"], [ac_coverage="no"]) -AC_ARG_ENABLE([unreachable], - [AS_HELP_STRING([--enable-unreachable], - [Enable warnings about unreachable code @<:@default=no@:>@])], - [ac_warn_unreachable="$enableval"], - [ac_warn_unreachable="no"]) - - -dnl We can't do these two warnings, so turn them off +dnl We can't do this warning, so turn off W_STRICT_ALIASING="-Wno-strict-aliasing" if test "$GCC" = "yes" @@ -220,9 +213,6 @@ then AS_IF([test "$building_from_bzr" = "yes"], [W_FAIL="-Werror"]) - AS_IF([test "$ac_warn_unreachable" = "yes"], - [W_UNREACHABLE="-Wunreachable-code"]) - BASE_WARNINGS="-pedantic -W -Wall -Wextra ${W_FAIL} -Wundef -Wshadow -Wmissing-declarations ${W_STRICT_ALIASING}" CC_WARNINGS="${BASE_WARNINGS} -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wswitch-default -Wswitch-enum -Wcast-align" CXX_WARNINGS="${BASE_WARNINGS} -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wold-style-cast -Weffc++ -Wno-long-long" -- 2.30.2