From: Todd C. Miller Date: Wed, 23 Oct 2013 21:02:22 +0000 (-0600) Subject: Add -Wsign-compare to --enable-warnings X-Git-Tag: SUDO_1_8_9^2~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4d2978f300090b690ca316a95a86cb610b8b59f;p=sudo Add -Wsign-compare to --enable-warnings --- diff --git a/configure b/configure index cd5fbf528..9f6f58c37 100755 --- 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" diff --git a/configure.in b/configure.in index fa5443c46..9769cf962 100644 --- a/configure.in +++ b/configure.in @@ -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"