From 48213650cd1ec0c1af18be7e5e9fe7d1ac2dc4a4 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 21 Jun 2017 21:55:00 +0200 Subject: [PATCH] Try to make unit tests work without -Wno-address --- test/unit/arch/sys_arch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/arch/sys_arch.h b/test/unit/arch/sys_arch.h index 663cbcb6..752e4595 100644 --- a/test/unit/arch/sys_arch.h +++ b/test/unit/arch/sys_arch.h @@ -48,6 +48,7 @@ struct lwip_mbox { typedef struct lwip_mbox sys_mbox_t; #define SYS_MBOX_NULL NULL #define sys_mbox_valid(mbox) ((mbox != NULL) && ((mbox)->sem != NULL) && ((mbox)->sem != (void*)-1)) +#define sys_mbox_valid_val(mbox) (((mbox).sem != NULL) && ((mbox).sem != (void*)-1)) /* DWORD (thread id) is used for sys_thread_t but we won't include windows.h */ typedef u32_t sys_thread_t;