summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.c b/test.c
index f1566fb..1b95215 100644
--- a/test.c
+++ b/test.c
@@ -43,6 +43,13 @@ static long long usec(void) {
return (((long long)tv.tv_sec)*1000000)+tv.tv_usec;
}
+/* The assert() calls below have side effects, so we need assert()
+ * even if we are compiling without asserts (-DNDEBUG). */
+#ifdef NDEBUG
+#undef assert
+#define assert(e) (void)(e)
+#endif
+
static redisContext *select_database(redisContext *c) {
redisReply *reply;