diff options
author | Damjan Marion <damarion@cisco.com> | 2020-10-26 10:05:29 +0100 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2020-10-26 14:16:15 +0000 |
commit | efe4331450326eb090e9844d3a22d05c5f3750fe (patch) | |
tree | 1f505341469f1a4ec079657828620c55f5295650 /src/plugins | |
parent | 41917484d5d4f0dd55a3ea62ccc1cb1c8955052d (diff) |
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 <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/rdma/rdma.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |