aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/random_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/random_buffer.h')
-rw-r--r--src/vppinfra/random_buffer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vppinfra/random_buffer.h b/src/vppinfra/random_buffer.h
index eb318548b0a..320394d1862 100644
--- a/src/vppinfra/random_buffer.h
+++ b/src/vppinfra/random_buffer.h
@@ -40,6 +40,11 @@
#include <vppinfra/clib.h>
#include <vppinfra/random_isaac.h>
+#include <vppinfra/warnings.h>
+
+/* *INDENT-OFF* */
+WARN_OFF(array-bounds)
+/* *INDENT-ON* */
typedef struct
{
@@ -107,6 +112,10 @@ clib_random_buffer_get_data (clib_random_buffer_t * b, uword n_bytes)
return b->buffer + i;
}
+/* *INDENT-OFF* */
+WARN_ON(array-bounds)
+/* *INDENT-ON* */
+
#endif /* included_clib_random_buffer_h */
/*