moving debug cflags below other stuff
authorBrenden Matthews <brenden1@rty.ca>
Sat, 29 Mar 2008 04:09:09 +0000 (04:09 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Sat, 29 Mar 2008 04:09:09 +0000 (04:09 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1061 7f574dfc-610e-0410-a909-a81674777703

configure.ac.in

index d4d8e44..bc4a656 100644 (file)
@@ -304,19 +304,6 @@ else
 fi
 
 dnl
-dnl debug
-dnl
-
-AC_ARG_ENABLE([debug],
-              AC_HELP_STRING([--enable-debug], [compile with debug symbols @<:@default=no@:>@]),
-              [want_debug="$enableval"], [want_debug=no])
-
-if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
-  CFLAGS="$CFLAGS -g3 -Werror"
-  AC_DEFINE([DEBUG], [], [Define for debugging])
-fi
-
-dnl
 dnl X11
 dnl
 
@@ -570,6 +557,21 @@ dnl
 
 CFLAGS="$CFLAGS -Wall -W"
 
+dnl
+dnl debug
+dnl
+
+AC_ARG_ENABLE([debug],
+              AC_HELP_STRING([--enable-debug], [compile with debug symbols @<:@default=no@:>@]),
+              [want_debug="$enableval"], [want_debug=no])
+
+if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
+  CFLAGS="$CFLAGS -g3 -Werror"
+dnl for more 'extreme' testing
+dnl  CFLAGS="$CFLAGS -g3 -Werror -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Winline -Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -g"
+  AC_DEFINE([DEBUG], [], [Define for debugging])
+fi
+
 AC_SUBST(CFLAGS)
 AC_SUBST(X11_LIBS)