[dpdk-dev] [PATCH 05/10] lib: add extension keyword to structs with no members

Adrien Mazarguil adrien.mazarguil at 6wind.com
Tue Apr 5 16:08:05 CEST 2016

Exported header files used by applications should allow the strictest
compiler flags. Language extensions used in many places must be explicitly
marked or removed to avoid warnings and compilation failures.

This commit prevents the following errors:

 error: struct has no members

Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
 lib/librte_mempool/rte_mempool.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h
index 9745bf0..a46e661 100644
--- a/lib/librte_mempool/rte_mempool.h
+++ b/lib/librte_mempool/rte_mempool.h
@@ -169,6 +169,7 @@ struct rte_mempool_objhdr {
  * In debug mode, each object stored in mempools are suffixed by this
  * trailer structure containing a cookie preventing memory corruptions.
 struct rte_mempool_objtlr {
 	uint64_t cookie;                 /**< Debug cookie. */

More information about the dev mailing list