You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to build with cmake --build . --parallel the master branch on Debian 12(amd64) i get the following output In file included from /home/gcs/Git/cpr/include/cpr/curlholder.h:8, from /home/gcs/Git/cpr/include/cpr/cookies.h:4, from /home/gcs/Git/cpr/include/cpr/response.h:12, from /home/gcs/Git/cpr/include/cpr/async_wrapper.h:8, from /home/gcs/Git/cpr/include/cpr/session.h:12, from /home/gcs/Git/cpr/cpr/session.cpp:1: /home/gcs/Git/cpr/cpr/session.cpp: In member function ‘void cpr::Session::SetSslOptions(const cpr::SslOptions&)’: /home/gcs/Git/cpr/cpr/session.cpp:516:37: error: ‘CURLOPT_SSL_ENABLE_NPN’ is deprecated: since 7.86.0. Has no function [-Werror=deprecated-declarations] 516 | curl_easy_setopt(curl_->handle, CURLOPT_SSL_ENABLE_NPN, options.enable_npn ? ON : OFF); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:1901:3: note: declared here 1901 | CURLOPTDEPRECATED(CURLOPT_SSL_ENABLE_NPN, CURLOPTTYPE_LONG, 225, | ^~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors
Didn't seem to have any other issue opened with the same deprecation error
Description
Trying to build with
cmake --build . --parallel
the master branch on Debian 12(amd64) i get the following outputIn file included from /home/gcs/Git/cpr/include/cpr/curlholder.h:8, from /home/gcs/Git/cpr/include/cpr/cookies.h:4, from /home/gcs/Git/cpr/include/cpr/response.h:12, from /home/gcs/Git/cpr/include/cpr/async_wrapper.h:8, from /home/gcs/Git/cpr/include/cpr/session.h:12, from /home/gcs/Git/cpr/cpr/session.cpp:1: /home/gcs/Git/cpr/cpr/session.cpp: In member function ‘void cpr::Session::SetSslOptions(const cpr::SslOptions&)’: /home/gcs/Git/cpr/cpr/session.cpp:516:37: error: ‘CURLOPT_SSL_ENABLE_NPN’ is deprecated: since 7.86.0. Has no function [-Werror=deprecated-declarations] 516 | curl_easy_setopt(curl_->handle, CURLOPT_SSL_ENABLE_NPN, options.enable_npn ? ON : OFF); | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:1901:3: note: declared here 1901 | CURLOPTDEPRECATED(CURLOPT_SSL_ENABLE_NPN, CURLOPTTYPE_LONG, 225, | ^~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors
Didn't seem to have any other issue opened with the same deprecation error
Example/How to Reproduce
On a Debian 12(amd64) system
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: