compile with warnings enabled

This commit is contained in:
Dimitri Stolnikov
2012-04-25 22:36:56 +02:00
parent bad6fb080b
commit e5e68c6524
2 changed files with 13 additions and 1 deletions

View File

@ -38,6 +38,14 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
CFLAGS="$saved_CFLAGS"
AC_SUBST(SYMBOL_VISIBILITY)
AC_MSG_CHECKING(whether compiler understands -Wall)
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused -Wsign-compare"
AC_TRY_COMPILE([],[],
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)
CFLAGS="$old_CFLAGS")
dnl Generate the output
AM_CONFIG_HEADER(config.h)