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

Use of deprecated methods #634

Open
yurivict opened this issue Apr 11, 2024 · 0 comments
Open

Use of deprecated methods #634

yurivict opened this issue Apr 11, 2024 · 0 comments

Comments

@yurivict
Copy link

These warnings:

/usr/ports/net/cppzmq/work/cppzmq-4.10.0/tests/socket.cpp:619:24: warning: 'recv' is deprecated: from 4.3.1, use recv taking a reference to message_t and recv_flags [-Wdeprecated-declarations]
  619 |     const bool res = s.recv(&rmsg);
      |                        ^
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/zmq.hpp:2006:5: note: 'recv' has been explicitly marked deprecated here
 2006 |     ZMQ_CPP11_DEPRECATED(
      |     ^
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/zmq.hpp:87:35: note: expanded from macro 'ZMQ_CPP11_DEPRECATED'
   87 | #define ZMQ_CPP11_DEPRECATED(msg) ZMQ_DEPRECATED(msg)
      |                                   ^
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/zmq.hpp:65:31: note: expanded from macro 'ZMQ_DEPRECATED'
   65 | #define ZMQ_DEPRECATED(msg) [[deprecated(msg)]]
      |                               ^
1 warning generated.
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/tests/message.cpp:76:20: warning: 'message_t' is deprecated: from 4.7.0, use constructors taking iterators, (pointer, size) or strings instead [-Wdeprecated-declarations]
   76 |     zmq::message_t hi_msg("Hi"); // deprecated
      |                    ^
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/zmq.hpp:468:14: note: 'message_t' has been explicitly marked deprecated here
  468 |     explicit message_t(const Char (&data)[N]) :
      |              ^
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/tests/message.cpp:194:26: warning: 'message_t' is deprecated: from 4.7.0, use constructors taking iterators, (pointer, size) or strings instead [-Wdeprecated-declarations]
  194 |     const zmq::message_t depr("Foo"); // deprecated
      |                          ^
/usr/ports/net/cppzmq/work/cppzmq-4.10.0/zmq.hpp:468:14: note: 'message_t' has been explicitly marked deprecated here
  468 |     explicit message_t(const Char (&data)[N]) :
      |              ^
2 warnings generated.

indicate that some deprecated methods are used.

Version: 4.10.0
libzmq4-4.3.5
FreeBSD 14.0

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

1 participant