]> granicus.if.org Git - sudo/commitdiff
Add -Wold-style-definition to --enable-warnings
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 4 Nov 2013 13:21:01 +0000 (06:21 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 4 Nov 2013 13:21:01 +0000 (06:21 -0700)
configure
configure.in

index 7bc92f8145a7472d98297782d219e5773bba8585..cbab57e58813c3919927ad68478c856d26a4b282 100755 (executable)
--- 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"
index 54d41c7c342d072f0130f024324e341a55d30732..9ebd6e752d90654e01e236d77cf0ae7f90082e17 100644 (file)
@@ -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"