From efe4331450326eb090e9844d3a22d05c5f3750fe Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 26 Oct 2020 10:05:29 +0100 Subject: rdma: fix clang-11 build /vpp/src/plugins/rdma/rdma.h:203:17: 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] vlib_buffer_t buffer_template; Type: fix Change-Id: I4661839f262e01fe274a2ee7b3cb70f9bc6b7c62 Signed-off-by: Damjan Marion --- src/plugins/rdma/rdma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/rdma/rdma.h') diff --git a/src/plugins/rdma/rdma.h b/src/plugins/rdma/rdma.h index db8f740d946..e6d0abc0d41 100644 --- a/src/plugins/rdma/rdma.h +++ b/src/plugins/rdma/rdma.h @@ -200,9 +200,9 @@ typedef struct u16x8 cqe_flags8[VLIB_FRAME_SIZE / 8]; u16x16 cqe_flags16[VLIB_FRAME_SIZE / 16]; }; - vlib_buffer_t buffer_template; u32 current_segs[VLIB_FRAME_SIZE]; u32 to_free_buffers[VLIB_FRAME_SIZE]; + vlib_buffer_t buffer_template; } rdma_per_thread_data_t; typedef struct -- cgit 1.2.3-korg