mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 23:36:04 +00:00
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 <sustrik@250bpm.com>
This commit is contained in:
parent
6ecec9bbf1
commit
5e329ba7ca
@ -188,6 +188,7 @@ void *zmq::msg_t::data ()
|
|||||||
return u.lmsg.content->data;
|
return u.lmsg.content->data;
|
||||||
default:
|
default:
|
||||||
zmq_assert (false);
|
zmq_assert (false);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,6 +204,7 @@ size_t zmq::msg_t::size ()
|
|||||||
return u.lmsg.content->size;
|
return u.lmsg.content->size;
|
||||||
default:
|
default:
|
||||||
zmq_assert (false);
|
zmq_assert (false);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user