]> granicus.if.org Git - sudo/commitdiff
Add -Wpointer-arith to --enable-warnings
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Nov 2013 22:33:46 +0000 (15:33 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 15 Nov 2013 22:33:46 +0000 (15:33 -0700)
configure
configure.ac

index 74a4cf9d223ae6d44c61c67d6605b18a597a1653..78a004692b263b977799cc7b173b43f8700b733f 100755 (executable)
--- a/configure
+++ b/configure
@@ -21821,7 +21821,7 @@ _ACEOF
 
 if test -n "$GCC"; then
     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
-       CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition"
+       CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition -Wpointer-arith"
     fi
     if test X"$enable_werror" = X"yes"; then
        CFLAGS="${CFLAGS} -Werror"
index b9b6d9919e24471af5555bd373b2a71addd93a79..f7e91619562b69ef9a463fa9e1e964d128834f30 100644 (file)
@@ -3636,7 +3636,7 @@ dnl We add -Wall and -Werror after all tests so they don't cause failures
 dnl
 if test -n "$GCC"; then
     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
-       CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition"
+       CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition -Wpointer-arith"
     fi
     if test X"$enable_werror" = X"yes"; then
        CFLAGS="${CFLAGS} -Werror"