[dpdk-dev] [PATCH] ring: use direct cast to objtype fixes build error

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Apr 6 16:25:39 CEST 2017


2017-04-06 16:18, Olivier MATZ:
> On Thu,  6 Apr 2017 09:59:47 -0400, Ed Czeck <ed.czeck at atomicrules.com> wrote:
> > 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
> > 
> > Signed-off-by: Ed Czeck <ed.czeck at atomicrules.com>
> 
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>

Does this error happen only with C++?

Please could you give a Fixes line?


More information about the dev mailing list