Re: [dpdk-dev] [PATCH v4 06/23] rte_ring_generic.h: stack declarations before code

2018-05-17 Thread Olivier Matz
On Mon, May 14, 2018 at 01:09:57PM +0800, Andy Green wrote: > /projects/lagopus/src/dpdk/build/include/rte_ring_generic.h: > In function '__rte_ring_move_prod_head': > /projects/lagopus/src/dpdk/build/include/rte_ring_generic.h:76:3: > warning: ISO C90 forbids mixed declarations and code > [-Wdecla

[dpdk-dev] [PATCH v4 06/23] rte_ring_generic.h: stack declarations before code

2018-05-13 Thread Andy Green
/projects/lagopus/src/dpdk/build/include/rte_ring_generic.h: In function '__rte_ring_move_prod_head': /projects/lagopus/src/dpdk/build/include/rte_ring_generic.h:76:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] const uint32_t cons_tail = r->cons.tail;