mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-02 15:41:40 +02:00
Merge pull request #18 from Kobolog/master
Prevent -Wunused-value warnings from non-debug ZMQ_ASSERT macro
This commit is contained in:
commit
c36e3065d2
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