Added -Wall in debug mode.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment