[dpdk-dev] [PATCH v2 1/2] ring: fix declaration after code
Olivier Matz
olivier.matz at 6wind.com
Mon Jul 16 09:15:30 CEST 2018
On Mon, May 28, 2018 at 05:03:38PM +0800, Andy Green wrote:
> On gcc 5.4.0 / native aarch64 from Ubuntu 16.04:
>
> /home/agreen/lagopus/src/dpdk/build/include/
> rte_ring_c11_mem.h: In function
> '__rte_ring_move_prod_head':
> /home/agreen/lagopus/src/dpdk/build/include/
> rte_ring_c11_mem.h:69:3: warning: ISO C90
> forbids mixed declarations and code
> [-Wdeclaration-after-statement]
> const uint32_t cons_tail = r->cons.tail;
> ^
> /home/agreen/lagopus/src/dpdk/build/include/
> rte_ring_c11_mem.h: In function
> '__rte_ring_move_cons_head':
> /home/agreen/lagopus/src/dpdk/build/include/
> rte_ring_c11_mem.h:136:3: warning: ISO C90
> forbids mixed declarations and code
> [-Wdeclaration-after-statement]
> const uint32_t prod_tail = r->prod.tail;
> ^
>
> Signed-off-by: Andy Green <andy at warmcat.com>
> Fixes: 39368ebfc6 ("ring: introduce C11 memory model barrier option")
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list