From 5e329ba7cac8a52fbbd2c347064c2d9355009022 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 3 May 2011 23:16:03 +0200 Subject: Minor patch to keep ICC compiler happy ICC doesn't recognise that assert(false) terminates the program and thus complains that certain functions have no return values. This patch supplies dummy return values to keep the compiler happy. Signed-off-by: Martin Sustrik --- src/msg.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/msg.cpp') diff --git a/src/msg.cpp b/src/msg.cpp index bd6f066..fa871db 100644 --- a/src/msg.cpp +++ b/src/msg.cpp @@ -188,6 +188,7 @@ void *zmq::msg_t::data () return u.lmsg.content->data; default: zmq_assert (false); + return NULL; } } @@ -203,6 +204,7 @@ size_t zmq::msg_t::size () return u.lmsg.content->size; default: zmq_assert (false); + return 0; } } -- cgit v1.2.3