From: Dmitry Vakhrushev Date: Mon, 28 Jan 2019 22:34:22 +0000 (-0500) Subject: Fix error while compiling using 'vlib/vlib.h' dependencie. X-Git-Tag: v19.04-rc1~575 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=cac8cfaba977d3822c06452817e43d7f0bdaa189;p=vpp.git Fix error while compiling using 'vlib/vlib.h' dependencie. This variable without any needed 'define' becoming unused. Change-Id: I661a75a78dba03abb861ed918ad1e634a8ecd0af Signed-off-by: Dmitry Vakhrushev --- diff --git a/src/vlib/buffer_funcs.h b/src/vlib/buffer_funcs.h index 1c1cd28e95f..cedd7d02646 100644 --- a/src/vlib/buffer_funcs.h +++ b/src/vlib/buffer_funcs.h @@ -101,7 +101,9 @@ static_always_inline void vlib_get_buffers_with_offset (vlib_main_t * vm, u32 * bi, void **b, int count, i32 offset) { +#if defined (CLIB_HAVE_VEC256) || defined (CLIB_HAVE_VEC128) uword buffer_mem_start = vm->buffer_main->buffer_mem_start; +#endif #ifdef CLIB_HAVE_VEC256 u64x4 off = u64x4_splat (buffer_mem_start + offset); /* if count is not const, compiler will not unroll while loop