diff options
| author | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-04-25 22:36:56 +0200 |
|---|---|---|
| committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-04-25 22:36:56 +0200 |
| commit | e5e68c652407d22c40e8a1f1fe3e3f14cc0afb42 (patch) | |
| tree | c5b8e6054af0f5552080cd6431e5c7700c7452b0 /configure.ac | |
| parent | bad6fb080b774c680f6d1eda4e1a00dad5a8cd20 (diff) | |
compile with warnings enabled
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7f524aa..3af474a 100644 --- a/configure.ac +++ b/configure.ac @@ -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) |
