From: Greg Hudson Date: Wed, 9 Jan 2013 15:21:00 +0000 (-0500) Subject: Error on void pointer arithmetic with gcc X-Git-Tag: krb5-1.12-alpha1~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f81d9fe9b7e2040973500bc11f369a5696af548;p=thirdparty%2Fkrb5.git 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). --- diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 2c17e466c4..4fef4b72ef 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