1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

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();                             \
      |               ^
This commit is contained in:
Sébastien Helleu
2025-08-31 10:10:15 +02:00
parent 08651ba820
commit def60c1e1c
+1 -1
View File
@@ -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])