Skip to content

Fix some curl type issues#741

Open
bbhtt wants to merge 2 commits into
mainfrom
bbhtt/curl-type-fixes
Open

Fix some curl type issues#741
bbhtt wants to merge 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 force-pushed the bbhtt/curl-type-fixes branch from d25ea18 to 4f59bf7 Compare May 17, 2026 16:59
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