mirror of
https://github.com/curl/curl.git
synced 2026-05-17 11:56:21 +03:00
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
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue