examples/l2fwd-ivshmem: fix build with icc
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Jul 2016 14:13:36 +0000 (15:13 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 22 Jul 2016 16:00:41 +0000 (18:00 +0200)
commitaedbf1e308a0147662363346e0809fc14ab3d8f2
tree8c9bd62cbba100559e8abe6155cd37df2960de73
parent1c4466cb9907cb072852d0f992add6cc5a23443d
examples/l2fwd-ivshmem: fix build with icc

icc version 16.0.2, compile error:

examples/l2fwd-ivshmem/host/host.c(157):
error #3656: variable "total_vm_packets_dropped"
             may be used before its value is set
        total_vm_packets_dropped += ctrl->vm_ports[portid].stats.dropped;
        ^

Fixes: 6aa497249172 ("examples/l2fwd-ivshmem: import sample application")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/l2fwd-ivshmem/host/host.c