]> granicus.if.org Git - sudo/commitdiff
Don't add -Wold-style-definition to CFLAGS as it causes problems
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Oct 2014 21:26:21 +0000 (15:26 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Oct 2014 21:26:21 +0000 (15:26 -0600)
with 3rd party libraries such as zlib.

configure
configure.ac

index 851532b4c2c150d43a1d2c994b7643d3d99b12ac..112d884b7ab026f95410da764f34f04167aab1a8 100755 (executable)
--- a/configure
+++ b/configure
@@ -23111,7 +23111,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 -Wpointer-arith"
+       CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wpointer-arith"
     fi
     if test X"$enable_werror" = X"yes"; then
        CFLAGS="${CFLAGS} -Werror"
index 67ff194393d6687ed54daafb5a994efe49bafcfc..641ad31902dd5dcd911aed413a0fcdfc5d1efce1 100644 (file)
@@ -3920,7 +3920,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 -Wpointer-arith"
+       CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wpointer-arith"
     fi
     if test X"$enable_werror" = X"yes"; then
        CFLAGS="${CFLAGS} -Werror"