summaryrefslogtreecommitdiffstats
path: root/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'vppinfra')
-rw-r--r--vppinfra/vppinfra/error_bootstrap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vppinfra/vppinfra/error_bootstrap.h b/vppinfra/vppinfra/error_bootstrap.h
index ad600621eae..b03ec88049a 100644
--- a/vppinfra/vppinfra/error_bootstrap.h
+++ b/vppinfra/vppinfra/error_bootstrap.h
@@ -79,7 +79,11 @@ do { \
} \
} while (0)
+#if defined(__clang__)
+#define STATIC_ASSERT(truth,...)
+#else
#define STATIC_ASSERT(truth,...) _Static_assert(truth, __VA_ARGS__)
+#endif
/* Assert without allocating memory. */
#define ASSERT_AND_PANIC(truth) \