From bfe4dde2a437d5b117e147f39c31a5c41286c285 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 18 Feb 2021 10:28:06 -0800 Subject: [PATCH] xcc: we do not support build asserts Cover toolchains that do not have build asserts. Signed-off-by: Anas Nashif --- include/toolchain/gcc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index 758c642fe24..1482d87f5aa 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -61,6 +61,9 @@ (__STDC_VERSION__) >= 201100 #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) #define BUILD_ASSERT_MSG(EXPR, MSG) __DEPRECATED_MACRO BUILD_ASSERT(EXPR, MSG) +#else +#define BUILD_ASSERT(EXPR, MSG...) +#define BUILD_ASSERT_MSG(EXPR, MSG) #endif #include