aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/pg
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-10-10 19:17:58 +0200
committerFlorin Coras <florin.coras@gmail.com>2020-10-12 16:41:49 +0000
commit8c6988797e2a5d6da87fa73fee833ff3776b156b (patch)
tree4a78aa4d2a29527d006d24e5cba000d82e6897b8 /src/vnet/pg
parentc96ac7648efcf3d6d62513de54d96d34378e20fa (diff)
misc: clang-11 and gcc-10 support
clang-11 complains: error: field 'buffer_template' with variable sized type 'vlib_buffer_t' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] Type: improvement Change-Id: I2cb6b4fde723a05b42cf33dd8130df074f0362ab Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/pg')
-rw-r--r--src/vnet/pg/pg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/pg/pg.h b/src/vnet/pg/pg.h
index f5b5e5ac358..da2c2b54347 100644
--- a/src/vnet/pg/pg.h
+++ b/src/vnet/pg/pg.h
@@ -402,8 +402,8 @@ clib_error_t *pg_capture (pg_capture_args_t * a);
typedef struct
{
- vlib_buffer_t buffer;
u32 buffer_index;
+ vlib_buffer_t buffer;
}
pg_output_trace_t;