diff options
author | Lev Walkin <vlm@lionet.info> | 2004-09-26 14:10:37 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-09-26 14:10:37 +0000 |
commit | 7c6e9243108371eec809ce71f17bd02720d7fb25 (patch) | |
tree | 9f049105191be918381a0db82a59e7e420aacf64 | |
parent | 2eb6c19aa628e8fe140cb7e810879255041c9293 (diff) |
another way
-rw-r--r-- | configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 045d12d9..5f9f56f1 100644 --- a/configure.in +++ b/configure.in @@ -51,7 +51,10 @@ esac AC_ARG_ENABLE(autoconf, [ --enable-Werror abort compilation after any C compiler warning], + enable_werror=$enableval, enable_werror=no) +if test x$enable_werror = xyes; then ADD_CFLAGS="-Werror -W -Wpointer-arith") +fi AC_SUBST(ADD_CFLAGS) dnl Add these flags if we're using GCC. |