From: Monty Taylor Date: Sun, 21 Jun 2009 01:11:24 +0000 (-0700) Subject: Hrm. Turns out we _can_ turn on strict-aliasing. X-Git-Tag: 0.31~14^2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c1b56424fb18db31b7faaa8a8edefff854261fd1;p=awesomized%2Flibmemcached Hrm. Turns out we _can_ turn on strict-aliasing. --- diff --git a/configure.ac b/configure.ac index 190f5985..a69d2c90 100644 --- a/configure.ac +++ b/configure.ac @@ -278,8 +278,6 @@ uint16_t x= htons(80); ]) ]) - W_STRICT_ALIASING="-Wno-strict-aliasing" - AS_IF([test "$ac_profiling" = "yes"], [CC_PROFILING="-pg"]) @@ -289,7 +287,7 @@ uint16_t x= htons(80); AS_IF([test "$building_from_bzr" = "yes"], [W_FAIL="-Werror"]) - BASE_WARNINGS="-pedantic -W -Wall -Wextra ${W_FAIL} -Wundef -Wshadow -Wmissing-declarations ${W_STRICT_ALIASING} ${F_DIAGNOSTICS_SHOW_OPTION} ${W_CONVERSION}" + BASE_WARNINGS="-pedantic -W -Wall -Wextra ${W_FAIL} -Wundef -Wshadow -Wmissing-declarations -Wstrict-aliasing ${F_DIAGNOSTICS_SHOW_OPTION} ${W_CONVERSION}" 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"