From b61797ea2b3cb0827ee17094784211405e5706c8 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 28 Feb 2019 21:21:11 -0500 Subject: ensure void expression is still being evaluated even though discarded --- test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.h b/test.h index ef28c1d..3bbf59a 100644 --- a/test.h +++ b/test.h @@ -8,7 +8,7 @@ void test_int_equals_imp(const char*, int, int); #define test_int_equals(expression, expected) test_int_equals_imp(#expression, expression, expected) void test_void_imp(const char*); -#define test_void(expression) test_void_imp(#expression) +#define test_void(expression) ((void)expression), test_void_imp(#expression) void test_bool_imp(const char *, int, int); #define test_false(expression) test_bool_imp(#expression, expression, 0) -- cgit v1.2.1