From 06d615779d3976baf76c58e1866276d0931eb043 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 29 Sep 2022 16:32:52 -0700 Subject: [PATCH] Fixed njs_assert() macro. Previously, the argument was always evaluated, even if NJS_DEBUG was undefined. --- src/njs_assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/njs_assert.h b/src/njs_assert.h index c4de79b5..d325613d 100644 --- a/src/njs_assert.h +++ b/src/njs_assert.h @@ -29,8 +29,8 @@ #else -#define njs_assert(condition) (void) (condition) -#define njs_assert_msg(condition, fmt, ...) (void) (condition) +#define njs_assert(condition) +#define njs_assert_msg(condition, fmt, ...) #endif -- 2.47.3