From: Todd C. Miller Date: Mon, 4 Nov 2013 13:21:01 +0000 (-0700) Subject: Add -Wold-style-definition to --enable-warnings X-Git-Tag: SUDO_1_8_9^2~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b65249bd41a1a72a2a52fc09c0be73663e32af6;p=sudo Add -Wold-style-definition to --enable-warnings --- diff --git a/configure b/configure index 7bc92f814..cbab57e58 100755 --- a/configure +++ b/configure @@ -21751,7 +21751,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" + CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition" fi if test X"$enable_werror" = X"yes"; then CFLAGS="${CFLAGS} -Werror" diff --git a/configure.in b/configure.in index 54d41c7c3..9ebd6e752 100644 --- a/configure.in +++ b/configure.in @@ -3628,7 +3628,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" + CFLAGS="${CFLAGS} -Wall -Wsign-compare -Wold-style-definition" fi if test X"$enable_werror" = X"yes"; then CFLAGS="${CFLAGS} -Werror"