Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix issues reported by coverity
[vpp.git]
/
vppinfra
/
vppinfra
/
error_bootstrap.h
diff --git
a/vppinfra/vppinfra/error_bootstrap.h
b/vppinfra/vppinfra/error_bootstrap.h
index
3fa0a18
..
b03ec88
100644
(file)
--- a/
vppinfra/vppinfra/error_bootstrap.h
+++ b/
vppinfra/vppinfra/error_bootstrap.h
@@
-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 { \