[dpdk-dev] [PATCH] mempool: fix empty structure definition

2016-07-15 Thread Thomas Monjalon
> > 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

[dpdk-dev] [PATCH] mempool: fix empty structure definition

2016-07-13 Thread Olivier MATZ
On 07/13/2016 02:30 PM, Adrien Mazarguil wrote: > 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 o

[dpdk-dev] [PATCH] mempool: fix empty structure definition

2016-07-13 Thread Adrien Mazarguil
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: 97e7e685