aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-01-09 10:21:00 -0500
committerGreg Hudson <ghudson@mit.edu>2013-01-09 10:21:00 -0500
commit3f81d9fe9b7e2040973500bc11f369a5696af548 (patch)
treedbd649a499db2315d5a5cce4762ecfed5c4e4726 /src
parentfc20ae13f18260930433d6239554f24bb50312a3 (diff)
downloadkrb5-3f81d9fe9b7e2040973500bc11f369a5696af548.zip
krb5-3f81d9fe9b7e2040973500bc11f369a5696af548.tar.gz
krb5-3f81d9fe9b7e2040973500bc11f369a5696af548.tar.bz2
Error on void pointer arithmetic with gcc
Add -Werror=pointer-arith to the gcc warning flags. The equivalent was added to the Solaris compiler flags in 2dc1ef4078acd7ca463a8eee2ef20de54e672f37 (r21886).
Diffstat (limited to 'src')
-rw-r--r--src/aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 2c17e46..4fef4b7 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -522,7 +522,7 @@ if test "$GCC" = yes ; then
TRY_WARN_CC_FLAG(-Wno-format-zero-length)
# Other flags here may not be supported on some versions of
# gcc that people want to use.
- for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized ; do
+ for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized error=pointer-arith ; do
TRY_WARN_CC_FLAG(-W$flag)
done
# old-style-definition? generates many, many warnings