From: Dominique Leuenberger Date: Mon, 3 Oct 2011 15:53:43 +0000 (+0200) Subject: m4: Use x in order to avoid variable 'x' set but not used [-Werror=unused-but-set... X-Git-Tag: curl-7_23_0~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=381459fa65a37943417462b32cb312ea9b3c7a62;p=thirdparty%2Fcurl.git m4: Use x in order to avoid variable 'x' set but not used [-Werror=unused-but-set-variable] This error could be caused by configure scripts being run with -Werror -Wall, which would lead to libcurl being detected as unusable. --- diff --git a/docs/libcurl/libcurl.m4 b/docs/libcurl/libcurl.m4 index 01a0575cc5..8cada0523a 100644 --- a/docs/libcurl/libcurl.m4 +++ b/docs/libcurl/libcurl.m4 @@ -157,6 +157,7 @@ x=CURLOPT_FILE; x=CURLOPT_ERRORBUFFER; x=CURLOPT_STDERR; x=CURLOPT_VERBOSE; +if (x) ; ])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no) CPPFLAGS=$_libcurl_save_cppflags