From: Monty Taylor Date: Sun, 14 Jun 2009 21:58:53 +0000 (-0700) Subject: Removed unused references to unreachable-code. X-Git-Tag: 0.31~14^2~16 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c93a2f3889818324e467bca592a29e4093da188d;p=awesomized%2Flibmemcached Removed unused references to unreachable-code. --- 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"