From 8c6988797e2a5d6da87fa73fee833ff3776b156b Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sat, 10 Oct 2020 19:17:58 +0200 Subject: 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 --- src/plugins/memif/private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/memif/private.h') diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h index 4613512041d..187888d5b95 100644 --- a/src/plugins/memif/private.h +++ b/src/plugins/memif/private.h @@ -225,9 +225,9 @@ typedef struct memif_copy_op_t *copy_ops; u32 *buffers; + memif_desc_t desc_template; /* buffer template */ vlib_buffer_t buffer_template; - memif_desc_t desc_template; } memif_per_thread_data_t; typedef struct -- cgit 1.2.3-korg