Skip to content

‘CURLOPT_PROTOCOLS’ is deprecated #38

@nebulosa2007

Description

@nebulosa2007

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions