From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [pktgen PATCH 4/6] fix compilation with gcc 7 Date: Wed, 26 Jul 2017 01:21:05 +0300 Message-ID: <20170725222107.23203-5-thomas@monjalon.net> References: <20170725222107.23203-1-thomas@monjalon.net> Cc: dev@dpdk.org To: keith.wiles@intel.com Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 68B84388F for ; Wed, 26 Jul 2017 00:21:21 +0200 (CEST) In-Reply-To: <20170725222107.23203-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Thomas Monjalon --- lib/common/mbuf.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/common/mbuf.h b/lib/common/mbuf.h index 0191b28..31bfa96 100644 --- a/lib/common/mbuf.h +++ b/lib/common/mbuf.h @@ -90,6 +90,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool, rte_mbuf_refcnt_set(mbufs[idx], 1); pktmbuf_reset(mbufs[idx]); idx++; + /* fall-through */ case 3: #ifdef RTE_ASSERT RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0); @@ -99,6 +100,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool, rte_mbuf_refcnt_set(mbufs[idx], 1); pktmbuf_reset(mbufs[idx]); idx++; + /* fall-through */ case 2: #ifdef RTE_ASSERT RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0); @@ -108,6 +110,7 @@ pg_pktmbuf_alloc_bulk(struct rte_mempool *pool, rte_mbuf_refcnt_set(mbufs[idx], 1); pktmbuf_reset(mbufs[idx]); idx++; + /* fall-through */ case 1: #ifdef RTE_ASSERT RTE_ASSERT(rte_mbuf_refcnt_read(mbufs[idx]) == 0); -- 2.13.2