From d9e628fb536e51cd0a1493d1eb396495fe3d4ff0 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 18 Mar 2019 21:52:30 +0000 Subject: [PATCH] test.h: fix unused variable warning when not enabled Signed-off-by: Yuxuan Shui --- test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.h b/test.h index 5c0882ed..a44385d2 100644 --- a/test.h +++ b/test.h @@ -122,8 +122,8 @@ static inline bool __attribute__((unused)) run_tests(int argc, char *const *argv #define TEST_CASE(name) static void __attribute__((unused)) __test_h_##name(void) -#define TEST_EQUAL(a, b) -#define TEST_TRUE(a) +#define TEST_EQUAL(a, b) (void)(a); (void)(b) +#define TEST_TRUE(a) (void)(a) static inline bool __attribute__((unused)) run_tests(int argc, char *const *argv) { return true;