Re: [dpdk-dev] [PATCH 1/3] ring: fix build with -Wswitch-enum

2020-04-27 Thread Ananyev, Konstantin
> > Some popular vswitch implementation might use a gcc option that > complains about missing enums in switch statements. > Fix this by listing all possible values. > > Fixes: 664ff4b1729b ("ring: introduce peek style API") > > Signed-off-by: David Marchand > --- > lib/librte_ring/rte_ring_pee

[dpdk-dev] [PATCH 1/3] ring: fix build with -Wswitch-enum

2020-04-27 Thread David Marchand
Some popular vswitch implementation might use a gcc option that complains about missing enums in switch statements. Fix this by listing all possible values. Fixes: 664ff4b1729b ("ring: introduce peek style API") Signed-off-by: David Marchand --- lib/librte_ring/rte_ring_peek.h | 8 1 f