From 372b95f77f08ae7a64a5bca53cfb342ec5a8adc9 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 7 Mar 2023 21:37:12 +0300 Subject: [PATCH] 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 --- docs/libcurl/libcurl.m4 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/libcurl/libcurl.m4 b/docs/libcurl/libcurl.m4 index 7215f44a3c..d02092073c 100644 --- a/docs/libcurl/libcurl.m4 +++ b/docs/libcurl/libcurl.m4 @@ -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 ]]) CPPFLAGS=$_libcurl_save_cppflags LIBS=$_libcurl_save_libs -- 2.47.3