api: fix inconsistent behaviour when adding l2fib filter entry (VPP-147)
[vpp.git] / vppinfra / vppinfra / error_bootstrap.h
index 3fa0a18..b03ec88 100644 (file)
@@ -79,6 +79,12 @@ 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)                        \
 do {                                           \