]> granicus.if.org Git - sudo/commitdiff
Add -Wsign-compare to --enable-warnings
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Oct 2013 21:02:22 +0000 (15:02 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 23 Oct 2013 21:02:22 +0000 (15:02 -0600)
configure
configure.in

index cd5fbf52836095d6e843a1d2142a90b646b77c2d..9f6f58c37e4123b1bbaf5f6b2d7c4ef919673d11 100755 (executable)
--- a/configure
+++ b/configure
@@ -21813,7 +21813,7 @@ _ACEOF
 
 if test -n "$GCC"; then
     if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
-       CFLAGS="${CFLAGS} -Wall"
+       CFLAGS="${CFLAGS} -Wall -Wsign-compare"
     fi
     if test X"$enable_werror" = X"yes"; then
        CFLAGS="${CFLAGS} -Werror"
index fa5443c4675f26cfd25c4e94b5355f50f4744add..9769cf962b66aaf0bc2f064b44c4a0830a0804fa 100644 (file)
@@ -3632,7 +3632,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"
+       CFLAGS="${CFLAGS} -Wall -Wsign-compare"
     fi
     if test X"$enable_werror" = X"yes"; then
        CFLAGS="${CFLAGS} -Werror"