]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libcurl.m4: Put braces around empty if body
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Fri, 28 Aug 2015 16:53:41 +0000 (19:53 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 28 Aug 2015 20:51:55 +0000 (22:51 +0200)
Put braces around empty "if" body in libcurl.m4 check to avoid warning:

        suggest braces around empty body in an 'if' statement

and make it work with -Werror builds.

Closes #402

docs/libcurl/libcurl.m4

index 2cf3edd1be09cb9ab97d96b06f7774727ab67b5b..f6ebdd239a2caaf3ccf4386183598082cc2b597a 100644 (file)
@@ -178,7 +178,7 @@ x=CURLOPT_WRITEDATA;
 x=CURLOPT_ERRORBUFFER;
 x=CURLOPT_STDERR;
 x=CURLOPT_VERBOSE;
-if (x) ;
+if (x) {;}
 ]])],libcurl_cv_lib_curl_usable=yes,libcurl_cv_lib_curl_usable=no)
 
            CPPFLAGS=$_libcurl_save_cppflags