krb5 commit: Error on void pointer arithmetic with gcc

Greg Hudson ghudson at MIT.EDU
Wed Jan 9 10:21:26 EST 2013


https://github.com/krb5/krb5/commit/3f81d9fe9b7e2040973500bc11f369a5696af548
commit 3f81d9fe9b7e2040973500bc11f369a5696af548
Author: Greg Hudson <ghudson at mit.edu>
Date:   Wed Jan 9 10:21:00 2013 -0500

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

 src/aclocal.m4 |    2 +-
 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


More information about the cvs-krb5 mailing list