numam-dpdk/lib/librte_mempool
Adrien Mazarguil 1cc275ef61 mempool: fix empty structure definition
This commit addresses the following warning reported by clang, which
happens by default, as long as CONFIG_RTE_LIBRTE_MEMPOOL_DEBUG is disabled:

 warning: empty struct has size 0 in C, size 1 in C++

C and C++ must use the same size for objects to avoid corruption during run
time.

Fixes: 97e7e685bf ("mempool: add structure for object trailers")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2016-07-15 17:26:52 +02:00
..
Makefile mempool: add stack mempool handler 2016-07-01 12:35:57 +02:00
rte_mempool_ops.c mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool_ring.c mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool_stack.c mempool: add stack mempool handler 2016-07-01 12:35:57 +02:00
rte_mempool_version.map mempool: rename functions with confusing names 2016-07-01 12:35:57 +02:00
rte_mempool.c mempool: fix empty structure definition 2016-07-15 17:26:52 +02:00
rte_mempool.h mempool: fix empty structure definition 2016-07-15 17:26:52 +02:00