add -Wwrite-strings in debug mode

This commit is contained in:
Dana Jansens 2007-03-18 15:15:38 +00:00
parent 3678f8df8a
commit 841a83fa6d

View file

@ -64,7 +64,7 @@ AC_DEFUN([OB_COMPILER_FLAGS],
if test "$GCC" = "yes"; then
AC_MSG_RESULT([yes])
if test "$DEBUG" = "yes"; then
FLAGS="$FLAGS -O0 -g -fno-inline"
FLAGS="$FLAGS -O0 -g -fno-inline -Wwrite-strings"
FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith"
# for Python.h