]> granicus.if.org Git - curl/commitdiff
m4: Use x in order to avoid variable 'x' set but not used [-Werror=unused-but-set...
authorDominique Leuenberger <dimstar@opensuse.org>
Mon, 3 Oct 2011 15:53:43 +0000 (17:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Oct 2011 20:46:28 +0000 (22:46 +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

index 01a0575cc531948433db664e05eb835cb49564ee..8cada0523a739ed994188949e6166d69d3eb91a3 100644 (file)
@@ -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