Zach Welch <zw@superlucidity.net> add -Wcast-align and -Wbad-function-cast

git-svn-id: svn://svn.berlios.de/openocd/trunk@1533 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
oharboe 2009-04-27 05:30:15 +00:00
parent 70d80bba5a
commit 60fdeb057a
1 changed files with 2 additions and 0 deletions

View File

@ -776,6 +776,8 @@ AC_PROG_RANLIB
GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security" GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"
if test "${gcc_wextra}" = yes; then if test "${gcc_wextra}" = yes; then
GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter" GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
GCC_WARNINGS="${GCC_WARNINGS} -Wcast-align"
fi fi
if test "${gcc_werror}" = yes; then if test "${gcc_werror}" = yes; then
GCC_WARNINGS="${GCC_WARNINGS} -Werror" GCC_WARNINGS="${GCC_WARNINGS} -Werror"