From def60c1e1cc5d4f98cebff65faa4a46228715c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 31 Aug 2025 10:10:15 +0200 Subject: [PATCH] core: cast Curl proxy port option to long This fixes this warning with clang: src/core/core-url.c:1017:5: warning: call to '_curl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Wattribute-warning] 1017 | curl_easy_setopt (curl, CURLOPT_PROXYPORT, | ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:50:15: note: expanded from macro 'curl_easy_setopt' 50 | _curl_easy_setopt_err_long(); \ | ^ --- src/core/core-url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core-url.c b/src/core/core-url.c index f47c7f602..eff05e27c 100644 --- a/src/core/core-url.c +++ b/src/core/core-url.c @@ -1015,7 +1015,7 @@ weeurl_set_proxy (CURL *curl, struct t_proxy *proxy) /* set proxy port */ curl_easy_setopt (curl, CURLOPT_PROXYPORT, - CONFIG_INTEGER(proxy->options[PROXY_OPTION_PORT])); + (long)(CONFIG_INTEGER(proxy->options[PROXY_OPTION_PORT]))); /* set username/password */ if (CONFIG_STRING(proxy->options[PROXY_OPTION_USERNAME])