]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Error on void pointer arithmetic with gcc
authorGreg Hudson <ghudson@mit.edu>
Wed, 9 Jan 2013 15:21:00 +0000 (10:21 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 9 Jan 2013 15:21:00 +0000 (10:21 -0500)
Add -Werror=pointer-arith to the gcc warning flags.  The equivalent
was added to the Solaris compiler flags in
2dc1ef4078acd7ca463a8eee2ef20de54e672f37 (r21886).

src/aclocal.m4

index 2c17e466c489b04b764f40896c08de639bf4c28b..4fef4b72ef3a07f5ff8d864ce4064b39fbff9bdc 100644 (file)
@@ -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