From 6fa12bd6926f65d6bc2d11368faa3c22f44a8b56 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Wed, 30 May 2018 22:32:53 +0200 Subject: [PATCH] Problem: unused stored value warning Solution: add LIBZMQ_UNUSED --- src/router.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/router.cpp b/src/router.cpp index fe02f74b..ab9dcb7b 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -80,6 +80,8 @@ void zmq::router_t::xattach_pipe (pipe_t *pipe_, bool subscribe_to_all_) rc = pipe_->write (&probe_msg); // zmq_assert (rc) is not applicable here, since it is not a bug. + LIBZMQ_UNUSED (rc); + pipe_->flush (); rc = probe_msg.close ();