ring: fix C++ cast error
authorEd Czeck <ed.czeck@atomicrules.com>
Thu, 6 Apr 2017 13:59:47 +0000 (09:59 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 6 Apr 2017 15:55:54 +0000 (17:55 +0200)
commit65d9e621fac43c42f1a12a8b65ef44e7faa79e11
tree11a105ebd4602684b7a584f2f31258077d3b45cf
parentab338eb44ebb79840dab1de2742c07070ae3bf0e
ring: fix C++ cast error

build error:
include/rte_ring.h:459:22: error: invalid conversion from ‘void*’
to ‘void**’ [-fpermissive]
  ENQUEUE_PTRS(r, &r[1], prod_head, obj_table, n, void *);

Implicit casts of void* to void** are considered warnings in some
compilers.  E.g. g++ version 5.8.  Cast directly to object types

Fixes: a6619414 ("ring: make struct and macros type agnostic")

Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_ring/rte_ring.h