numam-dpdk/lib/librte_ring
Andy Green 44c41b8577 ring: fix declaration after statement
On gcc 5.4.0 / native aarch64 from Ubuntu 16.04:

In function '__rte_ring_move_prod_head':
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;
   ^

In function '__rte_ring_move_cons_head':
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;
   ^

Fixes: 39368ebfc6 ("ring: introduce C11 memory model barrier option")
Cc: stable@dpdk.org

Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2018-07-26 16:11:51 +02:00
..
Makefile ring: relax alignment constraint on ring structure 2018-04-18 00:24:22 +02:00
meson.build build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
rte_ring_c11_mem.h ring: fix declaration after statement 2018-07-26 16:11:51 +02:00
rte_ring_generic.h ring: remove signed type flip-flopping 2018-05-21 00:20:16 +02:00
rte_ring_version.map lib: remove unused map symbols 2018-02-13 14:55:01 +01:00
rte_ring.c ring: convert license headers to SPDX tags 2018-02-01 01:46:45 +01:00
rte_ring.h ring: remove signed type flip-flopping 2018-05-21 00:20:16 +02:00