mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-31 14:39:56 +01:00
prevent unused expression result warnings from non-debug ZMQ_ASSERT macro expansion
This commit is contained in:
parent
b232978003
commit
2fe20236f5
2
zmq.hpp
2
zmq.hpp
@ -60,7 +60,7 @@
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
# define ZMQ_ASSERT(expression) assert(expression)
|
# define ZMQ_ASSERT(expression) assert(expression)
|
||||||
#else
|
#else
|
||||||
# define ZMQ_ASSERT(expression) (expression)
|
# define ZMQ_ASSERT(expression) (void)(expression)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace zmq
|
namespace zmq
|
||||||
|
Loading…
x
Reference in New Issue
Block a user