Skip to content

Fix some curl type issues#741

Merged
bbhtt merged 2 commits into
mainfrom
bbhtt/curl-type-fixes
May 19, 2026
Merged

Fix some curl type issues#741
bbhtt merged 2 commits into
mainfrom
bbhtt/curl-type-fixes

Conversation

@bbhtt
Copy link
Copy Markdown
Contributor

@bbhtt bbhtt commented May 16, 2026


../src/builder-utils.c:1186:3: error: call to 'Wcurl_easy_setopt_err_write_callback' declared with 'warning' attribute: curl_easy_setopt expects a curl_write_callback argument [-Werror,-Wattribute-warning]
 1186 |   curl_easy_setopt (session, CURLOPT_WRITEFUNCTION, builder_curl_write_cb);
      |   ^
/usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:60:15: note: expanded from macro 'curl_easy_setopt'
   60 |               Wcurl_easy_setopt_err_write_callback();                   \
      |               ^
1 error generated.
../src/builder-flatpak-utils.c:1170:3: error: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Werror,-Wattribute-warning]
 1170 |   curl_easy_setopt (curl_session, CURLOPT_NOPROGRESS, 0);
      |   ^
/usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:50:15: note: expanded from macro 'curl_easy_setopt'
   50 |               Wcurl_easy_setopt_err_long();                             \
      |               ^
../src/builder-flatpak-utils.c:1169:3: error: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Werror,-Wattribute-warning]
 1169 |   curl_easy_setopt (curl_session, CURLOPT_MAXREDIRS, 50);
      |   ^
/usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:50:15: note: expanded from macro 'curl_easy_setopt'
   50 |               Wcurl_easy_setopt_err_long();                             \
      |               ^
../src/builder-flatpak-utils.c:1168:3: error: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Werror,-Wattribute-warning]
 1168 |   curl_easy_setopt (curl_session, CURLOPT_FOLLOWLOCATION, 1);
      |   ^
/usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:50:15: note: expanded from macro 'curl_easy_setopt'
   50 |               Wcurl_easy_setopt_err_long();                             \
      |               ^
../src/builder-flatpak-utils.c:1167:3: error: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Werror,-Wattribute-warning]
 1167 |   curl_easy_setopt (curl_session, CURLOPT_FAILONERROR, 1);
      |   ^
/usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:50:15: note: expanded from macro 'curl_easy_setopt'
   50 |               Wcurl_easy_setopt_err_long();                             \
      |               ^
../src/builder-flatpak-utils.c:1166:3: error: call to 'Wcurl_easy_setopt_err_long' declared with 'warning' attribute: curl_easy_setopt expects a long argument [-Werror,-Wattribute-warning]
 1166 |   curl_easy_setopt (curl_session, CURLOPT_CONNECTTIMEOUT, 60);
      |   ^
/usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:50:15: note: expanded from macro 'curl_easy_setopt'
   50 |               Wcurl_easy_setopt_err_long();                             \
      |               ^
5 errors generated.

@bbhtt bbhtt mentioned this pull request May 16, 2026
@bbhtt bbhtt force-pushed the bbhtt/curl-type-fixes branch from d25ea18 to 4f59bf7 Compare May 17, 2026 16:59
@bbhtt bbhtt merged commit a8cb2d3 into main May 19, 2026
2 checks passed
@bbhtt bbhtt deleted the bbhtt/curl-type-fixes branch May 19, 2026 00:44
@bbhtt bbhtt added this to the 1.5.0 milestone May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant