curl-library
[PATCH] m4: Use x in order to avoid variable 'x' set but not used [-Werror=unused-but-set-variable]
From: Dominique Leuenberger <dimstar_at_opensuse.org>
Date: Mon, 3 Oct 2011 17:53:43 +0200
Date: Mon, 3 Oct 2011 17:53:43 +0200
This error could be caused by configure scripts being run with -Werror
-Wall, which would lead to libcurl being detected as unusable.
--- docs/libcurl/libcurl.m4 | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/docs/libcurl/libcurl.m4 b/docs/libcurl/libcurl.m4 index 01a0575..8cada05 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 -- 1.7.6.4 --=-sgcCt0l9ZRr8/V/GPw9L Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html --=-sgcCt0l9ZRr8/V/GPw9L--Received on 2001-09-17