From: Todd C. Miller Date: Fri, 24 Oct 2014 21:26:21 +0000 (-0600) Subject: Don't add -Wold-style-definition to CFLAGS as it causes problems X-Git-Tag: SUDO_1_8_12^2~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5a2d0f2d4faf85072568366b4b99a61024aee8e;p=sudo Don't add -Wold-style-definition to CFLAGS as it causes problems with 3rd party libraries such as zlib. --- diff --git a/configure b/configure index 851532b4c..112d884b7 100755 --- 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" diff --git a/configure.ac b/configure.ac index 67ff19439..641ad3190 100644 --- a/configure.ac +++ b/configure.ac @@ -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"