vppinfra: selectively disable false-positive GCC-10 warnings
[vpp.git] / src / vppinfra / random_buffer.h
index eb31854..320394d 100644 (file)
 
 #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 */
 
 /*