From: Monty Taylor Date: Sun, 21 Jun 2009 01:20:36 +0000 (-0700) Subject: Added -Wformat=2 - checks for some safety/security violations on format strings. X-Git-Tag: 0.31~14^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=020e1c454c37818161ae905749a55a1568b93f15;hp=b4860bdba677675e66f10b727d57d42cd549e32d;p=awesomized%2Flibmemcached Added -Wformat=2 - checks for some safety/security violations on format strings. --- diff --git a/configure.ac b/configure.ac index 4fd3c2d2..44102861 100644 --- a/configure.ac +++ b/configure.ac @@ -287,7 +287,7 @@ uint16_t x= htons(80); AS_IF([test "$building_from_bzr" = "yes"], [W_FAIL="-Werror"]) - BASE_WARNINGS="-pedantic -Wall -Wextra ${W_FAIL} -Wundef -Wshadow -Wmissing-declarations -Wstrict-aliasing ${F_DIAGNOSTICS_SHOW_OPTION} ${W_CONVERSION}" + BASE_WARNINGS="-pedantic -Wall -Wextra ${W_FAIL} -Wundef -Wshadow -Wmissing-declarations -Wstrict-aliasing -Wformat=2 ${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"