From 9ab42698be23d6355c7ce5dc09d8e67a97461bf9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 15 Jan 2021 08:42:31 +0100 Subject: Suppress warning due to zmq.hpp update --- src/Outputs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Outputs.cpp b/src/Outputs.cpp index 713ac1a..ad05f93 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