From: Frédéric Marchal Date: Mon, 7 Feb 2011 18:32:32 +0000 (+0000) Subject: Take the result of the test for -Werror=format into account X-Git-Tag: v2.3.2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdaa13d32ae280cffe88c0da6d7d9b9a6269ebcf;p=thirdparty%2Fsarg.git Take the result of the test for -Werror=format into account Due to a copy and paste error, the non availability of -Werror=format in the compiler was not taken into account. --- diff --git a/configure.in b/configure.in index 58fb43e..e15aba9 100644 --- a/configure.in +++ b/configure.in @@ -47,7 +47,7 @@ saved_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Werror=format" AC_COMPILE_IFELSE([AC_LANG_SOURCE([])],[have_error_format="yes"],[have_error_format="no"]) AC_MSG_RESULT($have_error_format) -if test "$have_implicit_function_declaration" == "no" ; then +if test "$have_error_format" == "no" ; then CFLAGS="${saved_CFLAGS}" fi