From e37fc47fb68b18ae96802b39c4be994dc2e7f5be Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Thu, 17 May 2018 14:26:02 +0200 Subject: [PATCH] Problem: return value is stored but never used Solution: add code to make non-use explicit --- src/dealer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dealer.cpp b/src/dealer.cpp index 81da60fd..62c12ad3 100644 --- a/src/dealer.cpp +++ b/src/dealer.cpp @@ -57,6 +57,8 @@ void zmq::dealer_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. + (void) rc; + pipe_->flush (); rc = probe_msg_.close ();