Commit db7d2457 db7d245773d5e8e7376e675af81ba15b5847be2d by Sam Roberts

Added -Wall in debug mode.

1 parent c1515e51
...@@ -20,11 +20,11 @@ AC_DEFUN(MU_DEBUG_MODE, ...@@ -20,11 +20,11 @@ AC_DEFUN(MU_DEBUG_MODE,
20 if test x"$GCC" = xyes; then 20 if test x"$GCC" = xyes; then
21 AC_MSG_CHECKING(whether gcc accepts -ggdb) 21 AC_MSG_CHECKING(whether gcc accepts -ggdb)
22 save_CFLAGS=$CFLAGS 22 save_CFLAGS=$CFLAGS
23 CFLAGS="-ggdb" 23 CFLAGS="-ggdb -Wall"
24 AC_TRY_COMPILE([],void f(){}, 24 AC_TRY_COMPILE([],void f(){},
25 AC_MSG_RESULT(yes), 25 AC_MSG_RESULT(yes),
26 [if test x"$ac_cv_prog_cc_g" = xyes; then 26 [if test x"$ac_cv_prog_cc_g" = xyes; then
27 CFLAGS=-g 27 CFLAGS="-g -Wall"
28 else 28 else
29 CFLAGS= 29 CFLAGS=
30 fi 30 fi
......