another way

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@415 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-26 14:10:37 +00:00
parent ab8e43d8db
commit 275e5fda84
1 changed files with 3 additions and 0 deletions

View File

@ -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.