From 2fe20236f5da1692c14aee251fa028002c07e2b5 Mon Sep 17 00:00:00 2001 From: Andrey Sibiryov Date: Sat, 6 Apr 2013 04:14:30 +0400 Subject: [PATCH] prevent unused expression result warnings from non-debug ZMQ_ASSERT macro expansion --- zmq.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmq.hpp b/zmq.hpp index a30beda..d27143b 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -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