Re: [dpdk-dev] [PATCH v3 19/24] rte_ether.h: stack vars declared at top of function

2018-05-13 Thread Thomas Monjalon
12/05/2018 04:00, Andy Green: > /projects/lagopus/src/dpdk/build/include/rte_ether.h: > In function 'rte_vlan_strip': > /projects/lagopus/src/dpdk/build/include/rte_ether.h:357:2: > warning: ISO C90 forbids mixed declarations and code > [-Wdeclaration-after-statement] > struct vlan_hdr *vh = (str

[dpdk-dev] [PATCH v3 19/24] rte_ether.h: stack vars declared at top of function

2018-05-11 Thread Andy Green
/projects/lagopus/src/dpdk/build/include/rte_ether.h: In function 'rte_vlan_strip': /projects/lagopus/src/dpdk/build/include/rte_ether.h:357:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] struct vlan_hdr *vh = (struct vlan_hdr *)(eh + 1); Signed-off-by: A