# HG changeset patch
# User zas_
# Date 1232958983 0
# Node ID 51dec1b35246e94f26b4bab7c17704931dd422b4
# Parent  3a0bb56adf8ec9c9f44dcaf295b6d0a80f0c6425
Add -Wformat and -Wformat-security gcc options when --enable-debug-flags is set, move default optimization to -O2 by default (-O0 is only useful for specific debugging purposes).

diff -r 3a0bb56adf8e -r 51dec1b35246 configure.in
--- a/configure.in	Mon Jan 26 08:30:30 2009 +0000
+++ b/configure.in	Mon Jan 26 08:36:23 2009 +0000
@@ -68,8 +68,8 @@
 
 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"