octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63573] Build warnings from curl library


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #63573] Build warnings from curl library
Date: Wed, 25 Jan 2023 15:12:39 -0500 (EST)

Follow-up Comment #6, bug #63573 (project octave):

I'm still getting a gcc warning


In file included from ../liboctave/util/url-transfer.cc:44:
../liboctave/util/url-transfer.cc: In member function 'virtual void
octave::curl_transfer::form_data_post(const
Array<std::__cxx11::basic_string<char> >&)':
../liboctave/util/url-transfer.cc:737:17: warning: 'CURLOPT_HTTPPOST' is
deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations]
  737 |         SETOPT (CURLOPT_HTTPPOST, mime);
      |                 ^~~~~~~~~~~~~~~~
../liboctave/util/url-transfer.cc:737:9: note: in expansion of macro 'SETOPT'
  737 |         SETOPT (CURLOPT_HTTPPOST, mime);
      |         ^~~~~~
/usr/include/curl/curl.h:1195:3: note: declared here
 1195 |   CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24,
      |   ^~~~~~~~~~~~~~~~~


but I'm more confused by the fact that the structure pointer "mime" is never
changed to something other than nullptr before it is used. Where is mime
assigned to a valid mime struct?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63573>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]