Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘CURLOPT_PROTOCOLS’ is deprecated #38

Open
nebulosa2007 opened this issue Jun 11, 2024 · 1 comment
Open

‘CURLOPT_PROTOCOLS’ is deprecated #38

nebulosa2007 opened this issue Jun 11, 2024 · 1 comment

Comments

@nebulosa2007
Copy link

if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS, protocols))

I got a warning while compiling:

src/rdrview.c: In function ‘url_to_file’:
src/rdrview.c:243:9: warning: ‘CURLOPT_PROTOCOLS’ is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [-Wdeprecated-declarations]
  243 |         if (curl_easy_setopt(curl, CURLOPT_PROTOCOLS, protocols))
      |         ^~
In file included from src/rdrview.c:39:
/usr/include/curl/curl.h:1749:3: note: declared here
 1749 |   CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181,
      |   ^~~~~~~~~~~~~~~~~

gcc (GCC) 14.1.1 20240522

@eafer
Copy link
Owner

eafer commented Jun 11, 2024

Thanks for the report. I guess this is very new, my distro's libcurl doesn't even have CURLOPT_PROTOCOLS_STR. I'll look into it over the weekend.

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

No branches or pull requests

2 participants