summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/error.h')
-rw-r--r--src/vppinfra/error.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vppinfra/error.h b/src/vppinfra/error.h
index 63d73af36c7..e51f938e797 100644
--- a/src/vppinfra/error.h
+++ b/src/vppinfra/error.h
@@ -190,6 +190,16 @@ do { \
_error_assert; \
})
+/*
+ * If we're running under Coverity, don't die on
+ * failed static assertions.
+ */
+#ifdef __COVERITY__
+#ifndef _Static_assert
+#define _Static_assert(x,y)
+#endif
+#endif
+
#endif /* included_error_h */
/*