From cb5559ae45daa7ba689e6ae15a9f48c30ffa1d2b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 15 Jan 2021 08:43:30 +0100 Subject: Suppress warning due to zmq.hpp update --- src/Outputs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Outputs.cpp') diff --git a/src/Outputs.cpp b/src/Outputs.cpp index 7046f61..5dd061c 100644 --- a/src/Outputs.cpp +++ b/src/Outputs.cpp @@ -124,8 +124,9 @@ bool ZMQ::write_frame(const uint8_t *buf, size_t len) memcpy(ZMQ_FRAME_DATA(zmq_frame_header), buf, len); - m_sock.send(m_framebuf.data(), ZMQ_FRAME_SIZE(zmq_frame_header), - ZMQ_DONTWAIT); + m_sock.send( + zmq::const_buffer{m_framebuf.data(), ZMQ_FRAME_SIZE(zmq_frame_header)}, + zmq::send_flags::dontwait); } catch (zmq::error_t& e) { fprintf(stderr, "ZeroMQ send error !\n"); -- cgit v1.2.3