Add -Wformat and -Wformat-security gcc options when --enable-debug-flags is set,...
authorLaurent Monin <geeqie@norz.org>
Mon, 26 Jan 2009 08:36:23 +0000 (08:36 +0000)
committerLaurent Monin <geeqie@norz.org>
Mon, 26 Jan 2009 08:36:23 +0000 (08:36 +0000)
configure.in

index b0b7fcb..26da98c 100644 (file)
@@ -68,8 +68,8 @@ AC_HELP_STRING([--enable-debug-log], [enable debugging messages [default=yes]])]
 
 if test "x${enable_debug_flags}" != "xno"
 then
-  CXXFLAGS="${CXXFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter"
-  CFLAGS="${CFLAGS} -g -O0 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter"
+  CXXFLAGS="${CXXFLAGS} -g -O2 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter -Wformat -Wformat-security"
+  CFLAGS="${CFLAGS} -g -O2 -Wunused-value -Wunused-variable -Wunused-function -Wunused-label -Wcomment -Wimplicit-int -Werror-implicit-function-declaration -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wstrict-aliasing -Wextra -Wno-unused-parameter -Wformat -Wformat-security"
   if test "x${enable_developer}" == "xyes"
   then
   CXXFLAGS="${CXXFLAGS} -Wall"