ring: fix build with -Wswitch-enum
authorDavid Marchand <david.marchand@redhat.com>
Mon, 27 Apr 2020 13:23:39 +0000 (15:23 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 28 Apr 2020 09:34:40 +0000 (11:34 +0200)
commit2ead29e1d6fca678a4e29245710d02fab038b810
tree162ae99b256634904b9d7f95a740f8fea7b2b028
parentf0bb40d25f11b6a179c2fd039420a563a9d19485
ring: fix build with -Wswitch-enum

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 <david.marchand@redhat.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ring/rte_ring_peek.h