Add -Wno-unused-function to the compilation options for --enable-debug=yes to silence a warning from flex (GCC4.2, AMD64, Debian Testing).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3032 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
6cb9bdcbef
commit
a8ffb9b8c2
|
@ -145,7 +145,8 @@ fi
|
|||
|
||||
|
||||
# -O0 turns off all optimizations; this is necessary for accurate debugging
|
||||
# -Wno-unused-label is necessary because flex produces unused labels that we cannot fix
|
||||
# -Wno-unused-label and -Wno-unused-function are necessary because
|
||||
# flex produces unused labels and functions that we cannot fix
|
||||
# Add later for stricter checking: -Wextra -Wmissing-declarations -Wstrict-prototypes
|
||||
AC_ARG_ENABLE(debug,
|
||||
AS_HELP_STRING([--disable-debug[=yes/relaxed/no]],[Compile debug version [yes]]),
|
||||
|
@ -156,7 +157,7 @@ if test "x$enable_debug" = "xyes" ; then
|
|||
if test "x$cc_icc" = "xyes" ; then
|
||||
WZ_CFLAGS="${WZ_CFLAGS} -O0 -g -DDEBUG -Wcheck -Werror"
|
||||
else
|
||||
WZ_CFLAGS="${WZ_CFLAGS} -O0 -g -DDEBUG -Wall -Werror -Wno-unused-label -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast"
|
||||
WZ_CFLAGS="${WZ_CFLAGS} -O0 -g -DDEBUG -Wall -Werror -Wno-unused-label -Wno-unused-function -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast"
|
||||
fi
|
||||
elif test "x$enable_debug" = "xrelaxed" ; then
|
||||
WZ_CFLAGS="${WZ_CFLAGS} -g -DDEBUG -Wall -Wextra"
|
||||
|
|
Loading…
Reference in New Issue