jpbarrette / curlpp

C++ wrapper around libcURL
http://www.curlpp.org
1.68k stars 360 forks source link

Warnings during the compilation #175

Open giulianoc opened 1 week ago

giulianoc commented 1 week ago

hello, I'm receiving a lot of warnings during the compilation of my code, see below. What should I do to avoid them? Best regards Giuliano

/deploy/curlpp/include/curlpp/Options.hpp:305:50: warning: ‘CURLOPT_EGDSOCKET’ is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations] 305 | typedef curlpp::OptionTrait<std::string, CURLOPT_EGDSOCKET> EgdSocket; | ^~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:1363:3: note: declared here 1363 | CURLOPTDEPRECATED(CURLOPT_EGDSOCKET, CURLOPTTYPE_STRINGPOINT, 77, | ^~~~~ In file included from /opt/catrasoftware/CatraMMS/API/src/API_WorkflowLibrary.cpp:20: /deploy/curlpp/include/curlpp/Infos.hpp:55:30: warning: ‘CURLINFO_SIZE_UPLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SIZE_UPLOAD_T [-Wdeprecated-declarations] 55 | typedef curlpp::Info<CURLINFO_SIZE_UPLOAD, double> SizeUpload; | ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2854:3: note: declared here 2854 | CURLINFO_SIZE_UPLOAD CURL_DEPRECATED(7.55.0, "Use CURLINFO_SIZE_UPLOAD_T") | ^~~~~~~~ /deploy/curlpp/include/curlpp/Infos.hpp:56:30: warning: ‘CURLINFO_SIZE_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SIZE_DOWNLOAD_T [-Wdeprecated-declarations] 56 | typedef curlpp::Info<CURLINFO_SIZE_DOWNLOAD, double> SizeDownload; | ^~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2857:3: note: declared here 2857 | CURLINFO_SIZE_DOWNLOAD | ^~~~~~ /deploy/curlpp/include/curlpp/Infos.hpp:57:30: warning: ‘CURLINFO_SPEED_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SPEED_DOWNLOAD_T [-Wdeprecated-declarations] 57 | typedef curlpp::Info<CURLINFO_SPEED_DOWNLOAD, double> SpeedDownload; | ^~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2861:3: note: declared here 2861 | CURLINFO_SPEED_DOWNLOAD | ^~~~~~~ /deploy/curlpp/include/curlpp/Infos.hpp:58:30: warning: ‘CURLINFO_SPEED_UPLOAD’ is deprecated: since 7.55.0. Use CURLINFO_SPEED_UPLOAD_T [-Wdeprecated-declarations] 58 | typedef curlpp::Info<CURLINFO_SPEED_UPLOAD, double> SpeedUpload; | ^~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2865:3: note: declared here 2865 | CURLINFO_SPEED_UPLOAD | ^~~~~ /deploy/curlpp/include/curlpp/Infos.hpp:65:30: warning: ‘CURLINFO_CONTENT_LENGTH_DOWNLOAD’ is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations] 65 | typedef curlpp::Info<CURLINFO_CONTENT_LENGTH_DOWNLOAD, double> ContentLengthDownload; | ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2874:3: note: declared here 2874 | CURLINFO_CONTENT_LENGTH_DOWNLOAD | ^~~~~~~~ /deploy/curlpp/include/curlpp/Infos.hpp:66:30: warning: ‘CURLINFO_CONTENT_LENGTH_UPLOAD’ is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_UPLOAD_T [-Wdeprecated-declarations] 66 | typedef curlpp::Info<CURLINFO_CONTENT_LENGTH_UPLOAD, double> ContentLengthUpload;