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

2017-04-06 Thread Thomas Monjalon
2017-04-06 16:18, Olivier MATZ: > On Thu, 6 Apr 2017 09:59:47 -0400, Ed Czeck 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

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

2017-04-06 Thread Ed Czeck
This error has been observed with g++ 4.8 and g++ 5.4 Fixes: a6619414 ("ring: make struct and macros type agnostic") On Thu, Apr 6, 2017 at 10:25 AM, Thomas Monjalon wrote: > > Does this error happen only with C++? > > Please could you give a Fixes line?

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

2017-04-06 Thread Thomas Monjalon
2017-04-06 16:18, Olivier MATZ: > On Thu, 6 Apr 2017 09:59:47 -0400, Ed Czeck 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

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

2017-04-06 Thread Olivier MATZ
On Thu, 6 Apr 2017 09:59:47 -0400, Ed Czeck 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 >

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

2017-04-06 Thread Ed Czeck
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 S