]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Make: catch pointer-arith
authorJunio C Hamano <gitster@pobox.com>
Mon, 8 Feb 2010 02:13:48 +0000 (18:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Feb 2010 02:13:48 +0000 (18:13 -0800)
Make

diff --git a/Make b/Make
index 77ed76b86af60b9051f90e09c81f5b59c49a5bb8..d166e0399c911b24d6400272d4ee168a6d15496f 100755 (executable)
--- a/Make
+++ b/Make
@@ -86,7 +86,9 @@ do
                case "$NO_PEDANTIC" in
                ?*)     ;;
                '')
-                       O="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast" ;;
+                       O="$O -Werror $o -std=c99 -Wno-pointer-to-int-cast"
+                       O="$O -Wpointer-arith"
+                       ;;
                esac
                # -Wvla
                # O="$O -fwrapv -fno-strict-overflow"