prevent unused expression result warnings from non-debug ZMQ_ASSERT macro expansion

This commit is contained in:
Andrey Sibiryov 2013-04-06 04:14:30 +04:00
parent b232978003
commit 2fe20236f5

View File

@ -60,7 +60,7 @@
#ifndef NDEBUG
# define ZMQ_ASSERT(expression) assert(expression)
#else
# define ZMQ_ASSERT(expression) (expression)
# define ZMQ_ASSERT(expression) (void)(expression)
#endif
namespace zmq