Make: catch pointer-arith
Junio C Hamano committed
Feb 7, 2010 at 18:13 UTC
f473158ad573e55ab0b13a215097cf5cfca853b8
1 file changed
+3
-1
Make
+3
-1
index 77ed76b86a..d166e0399c 100755
--- 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"