Fix error while compiling using 'vlib/vlib.h' dependencie. 32/17132/3
authorDmitry Vakhrushev <dmitry@netgate.com>
Mon, 28 Jan 2019 22:34:22 +0000 (17:34 -0500)
committerDamjan Marion <dmarion@me.com>
Tue, 29 Jan 2019 16:35:46 +0000 (16:35 +0000)
This variable without any needed 'define' becoming unused.

Change-Id: I661a75a78dba03abb861ed918ad1e634a8ecd0af
Signed-off-by: Dmitry Vakhrushev <dmitry@netgate.com>
src/vlib/buffer_funcs.h

index 1c1cd28..cedd7d0 100644 (file)
@@ -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