Skip to content

Using depcrecated cURL option

download.c: In function ‘setup_curl_easy’:
download.c:152:5: error: ‘CURLOPT_PROTOCOLS’ is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [-Werror=deprecated-declarations]
  152 |     err_setopt = curl_easy_setopt(request, CURLOPT_PROTOCOLS,
      |     ^~~~~~~~~~
In file included from download.c:30:
/usr/include/curl/curl.h:1745:3: note: declared here
 1745 |   CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181,
      |   ^~~~~~~~~~~~~~~~~
download.c: In function ‘request_failed’:
download.c:291:5: error: ‘CURLINFO_PROTOCOL’ is deprecated: since 7.85.0. Use CURLINFO_SCHEME [-Werror=deprecated-declarations]
  291 |     err = curl_easy_getinfo(job->request, CURLINFO_PROTOCOL, &protocol);
      |     ^~~
/usr/include/curl/curl.h:2922:3: note: declared here
 2922 |   CURLINFO_PROTOCOL    CURL_DEPRECATED(7.85.0, "Use CURLINFO_SCHEME")
      |   ^~~~~~~~~~~~~~~~~
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information