Skip to content

Commit b681fe3

Browse files
committed
Disable code running in assertions in release mode
Signed-off-by: Danila Fedorin <daniel.fedorin@hpe.com>
1 parent 8c81921 commit b681fe3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

frontend/include/chpl/util/assertions.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ void chpl_unimpl(const char* filename, const char* func, int lineno,
4242
#ifdef NDEBUG
4343
// release mode
4444
#define CHPL_ASSERT(expr__) \
45-
do { \
46-
bool ignore = expr__; \
47-
(void) ignore; \
48-
} while (0)
45+
do {} while (0)
4946

5047
#else
5148
// debug mode

0 commit comments

Comments
 (0)