examples/l3fwd: fix compilation with clang 3.5
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 17 Dec 2014 12:55:22 +0000 (13:55 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 23:26:08 +0000 (00:26 +0100)
commit74cc29448591d5005daf66cff84bd18aa4c606f3
treec9353e2c3aec6c20792cce2d2ce3c410fa3d9ebf
parente89ae122ce0272c677e6937cd8cf105c88da24cd
examples/l3fwd: fix compilation with clang 3.5

Fix the following error:
  error: unused function 'l3fwd_simple_forward'

The l3fwd_simple_forward() is maybe unused, due to compilation options
(APP_LOOKUP_METHOD, ENABLE_MULTI_BUFFER_OPTIMIZE). As the combinatorial
is quite big, it looks simpler to add the __attribute__((unused)) on
this function, so that the compiler does not complain.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
examples/l3fwd/main.c