diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-06-28 11:22:54 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-06-28 11:22:54 -0700 |
commit | c40fc96881fb99c5032e3d3c417aee3e9466d852 (patch) | |
tree | 9b6a5256ad8fd7492eca8a6508ff48925f943342 | |
parent | e80e46ebd9798f125d84a6915428620a264c6ac0 (diff) | |
parent | 02e01d33084614dccebffed533dce1c05477902d (diff) |
Merge remote-tracking branch 'balister/zmq-fix-gcc6' into maint
-rw-r--r-- | gr-zeromq/lib/base_impl.cc | 2 | ||||
-rw-r--r-- | gr-zeromq/lib/pull_msg_source_impl.cc | 2 | ||||
-rw-r--r-- | gr-zeromq/lib/push_sink_impl.cc | 2 | ||||
-rw-r--r-- | gr-zeromq/lib/rep_msg_sink_impl.cc | 2 | ||||
-rw-r--r-- | gr-zeromq/lib/rep_sink_impl.cc | 2 | ||||
-rw-r--r-- | gr-zeromq/lib/req_msg_source_impl.cc | 4 | ||||
-rw-r--r-- | gr-zeromq/lib/sub_msg_source_impl.cc | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/gr-zeromq/lib/base_impl.cc b/gr-zeromq/lib/base_impl.cc index f41e5cbfb5..f33315dd40 100644 --- a/gr-zeromq/lib/base_impl.cc +++ b/gr-zeromq/lib/base_impl.cc @@ -159,7 +159,7 @@ namespace gr { base_source_impl::load_message(bool wait) { /* Poll for input */ - zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } }; + zmq::pollitem_t items[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLIN, 0 } }; zmq::poll(&items[0], 1, wait ? d_timeout : 0); if (!(items[0].revents & ZMQ_POLLIN)) diff --git a/gr-zeromq/lib/pull_msg_source_impl.cc b/gr-zeromq/lib/pull_msg_source_impl.cc index 9d00cdfd74..bd84c9f31a 100644 --- a/gr-zeromq/lib/pull_msg_source_impl.cc +++ b/gr-zeromq/lib/pull_msg_source_impl.cc @@ -88,7 +88,7 @@ namespace gr { { while(!d_finished){ - zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } }; + zmq::pollitem_t items[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLIN, 0 } }; zmq::poll (&items[0], 1, d_timeout); // If we got a reply, process diff --git a/gr-zeromq/lib/push_sink_impl.cc b/gr-zeromq/lib/push_sink_impl.cc index a5aec2cf80..5f9670e4ca 100644 --- a/gr-zeromq/lib/push_sink_impl.cc +++ b/gr-zeromq/lib/push_sink_impl.cc @@ -53,7 +53,7 @@ namespace gr { gr_vector_void_star &output_items) { // Poll with a timeout (FIXME: scheduler can't wait for us) - zmq::pollitem_t itemsout[] = { { *d_socket, 0, ZMQ_POLLOUT, 0 } }; + zmq::pollitem_t itemsout[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLOUT, 0 } }; zmq::poll(&itemsout[0], 1, d_timeout); // If we can send something, do it diff --git a/gr-zeromq/lib/rep_msg_sink_impl.cc b/gr-zeromq/lib/rep_msg_sink_impl.cc index be86f83202..b88e62b3bc 100644 --- a/gr-zeromq/lib/rep_msg_sink_impl.cc +++ b/gr-zeromq/lib/rep_msg_sink_impl.cc @@ -90,7 +90,7 @@ namespace gr { while(!empty_p(pmt::mp("in"))) { // wait for query... - zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } }; + zmq::pollitem_t items[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLIN, 0 } }; zmq::poll (&items[0], 1, d_timeout); // If we got a reply, process diff --git a/gr-zeromq/lib/rep_sink_impl.cc b/gr-zeromq/lib/rep_sink_impl.cc index ac6fc9c8b1..0303f65db4 100644 --- a/gr-zeromq/lib/rep_sink_impl.cc +++ b/gr-zeromq/lib/rep_sink_impl.cc @@ -62,7 +62,7 @@ namespace gr { /* Wait for a small time (FIXME: scheduler can't wait for us) */ /* We only wait if its the first iteration, for the others we'll * let the scheduler retry */ - zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } }; + zmq::pollitem_t items[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLIN, 0 } }; zmq::poll(&items[0], 1, first ? d_timeout : 0); /* If we dont have anything, we're done */ diff --git a/gr-zeromq/lib/req_msg_source_impl.cc b/gr-zeromq/lib/req_msg_source_impl.cc index e231a31962..7d9f0f38c9 100644 --- a/gr-zeromq/lib/req_msg_source_impl.cc +++ b/gr-zeromq/lib/req_msg_source_impl.cc @@ -89,7 +89,7 @@ namespace gr { while(!d_finished){ //std::cout << "readloop\n"; - zmq::pollitem_t itemsout[] = { { *d_socket, 0, ZMQ_POLLOUT, 0 } }; + zmq::pollitem_t itemsout[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLOUT, 0 } }; zmq::poll(&itemsout[0], 1, d_timeout); // If we got a reply, process @@ -101,7 +101,7 @@ namespace gr { d_socket->send(request); } - zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } }; + zmq::pollitem_t items[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLIN, 0 } }; zmq::poll (&items[0], 1, d_timeout); // If we got a reply, process diff --git a/gr-zeromq/lib/sub_msg_source_impl.cc b/gr-zeromq/lib/sub_msg_source_impl.cc index 0a11ea77f0..4a44442e62 100644 --- a/gr-zeromq/lib/sub_msg_source_impl.cc +++ b/gr-zeromq/lib/sub_msg_source_impl.cc @@ -87,7 +87,7 @@ namespace gr { { while(!d_finished){ - zmq::pollitem_t items[] = { { *d_socket, 0, ZMQ_POLLIN, 0 } }; + zmq::pollitem_t items[] = { { static_cast<void *>(*d_socket), 0, ZMQ_POLLIN, 0 } }; zmq::poll(&items[0], 1, d_timeout); // If we got a reply, process |