numam-dpdk/lib/librte_mempool
Cyril Chemparathy 6cf14ce4ce mempool: silence warning on pointer arithmetic
Translating from a mempool object to the mempool pointer does not break
alignment constraints.  However, the compiler is unaware of this fact and
complains on -Wcast-align.  This patch modifies the code to use RTE_PTR_SUB(),
thereby silencing the compiler by casting through (void *).

Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2015-06-24 12:00:28 +02:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_dom0_mempool.c lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
rte_mempool_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00
rte_mempool.c mempool: silence warning on pointer arithmetic 2015-06-24 12:00:28 +02:00
rte_mempool.h mempool: silence warning on pointer arithmetic 2015-06-24 12:00:28 +02:00