diff options
author | Ben Greear <greearb@candelatech.com> | 2010-07-29 23:43:02 -0700 |
---|---|---|
committer | Ben Greear <greearb@candelatech.com> | 2010-07-29 23:43:02 -0700 |
commit | 45557a138e60031a6e680d62aa29ddf2bf925d8c (patch) | |
tree | c21a3c4bb0d5b1e5795c208f8329e4efc1bec0e4 /configure.ac | |
parent | 3e33e2c2ba612d19cf7c1f77c8953b012489e801 (diff) | |
download | c-ares-45557a138e60031a6e680d62aa29ddf2bf925d8c.tar.gz c-ares-45557a138e60031a6e680d62aa29ddf2bf925d8c.tar.bz2 c-ares-45557a138e60031a6e680d62aa29ddf2bf925d8c.zip |
build: Enable compiling with -Werror.
This helps find compile warnings because they simply break
the build.
To use:
./configure --enable-warnings --enable-werror
Signed-off-by: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 667141d..d505e16 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,7 @@ AM_MAINTAINER_MODE CARES_CHECK_OPTION_DEBUG CARES_CHECK_OPTION_OPTIMIZE CARES_CHECK_OPTION_WARNINGS +CARES_CHECK_OPTION_WERROR CARES_CHECK_OPTION_CURLDEBUG CARES_CHECK_OPTION_SYMBOL_HIDING @@ -862,6 +863,12 @@ CARES_CONFIGURE_SYMBOL_HIDING CARES_PRIVATE_LIBS="$LIBS" AC_SUBST(CARES_PRIVATE_LIBS) +CARES_CFLAG_EXTRAS="" +if test X"$want_werror" == Xyes; then + CARES_CFLAG_EXTRAS="-Werror" +fi +AC_SUBST(CARES_CFLAG_EXTRAS) + dnl squeeze whitespace out of some variables squeeze CFLAGS |