doc: fix compiler warning in libcurl.m4
Current test for curl_free() may produce warnings with strict compiler flags or even with default compiler flags with upcoming versions. These warning could turned into errors by -Werror or similar flags. Such warnings/errors are avoided by this patch. Closes #10710
This commit is contained in:
parent
75087c3baa
commit
372b95f77f
@ -199,9 +199,10 @@ if (x) {;}
|
||||
_libcurl_save_libs=$LIBS
|
||||
LIBS="$LIBS $LIBCURL"
|
||||
|
||||
AC_CHECK_FUNC(curl_free,,
|
||||
AC_DEFINE(curl_free,free,
|
||||
[Define curl_free() as free() if our version of curl lacks curl_free.]))
|
||||
AC_CHECK_DECL([curl_free],[],
|
||||
[AC_DEFINE([curl_free],[free],
|
||||
[Define curl_free() as free() if our version of curl lacks curl_free.])],
|
||||
[[#include <curl/curl.h>]])
|
||||
|
||||
CPPFLAGS=$_libcurl_save_cppflags
|
||||
LIBS=$_libcurl_save_libs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user