From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 624869A8B for ; Fri, 27 Mar 2015 12:00:36 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 27 Mar 2015 04:00:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,478,1422950400"; d="scan'208";a="705036497" Received: from unknown (HELO Sent) ([10.217.248.233]) by orsmga002.jf.intel.com with SMTP; 27 Mar 2015 04:00:34 -0700 Received: by Sent (sSMTP sendmail emulation); Fri, 27 Mar 2015 12:00:38 +0100 From: Pawel Wodkowski To: dev@dpdk.org Date: Fri, 27 Mar 2015 11:56:01 +0100 Message-Id: <1427453761-20019-3-git-send-email-pawelx.wodkowski@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427453761-20019-1-git-send-email-pawelx.wodkowski@intel.com> References: <1427397455-30368-1-git-send-email-pablo.de.lara.guarch@intel.com> <1427453761-20019-1-git-send-email-pawelx.wodkowski@intel.com> Subject: [dpdk-dev] [PATCH v2 2/2] test: fix strict aliasing rule error in link bonding mode 4 test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 11:00:36 -0000 Fix strict aliasing rule error seen in gcc 4.4 Signed-off-by: Pawel Wodkowski --- app/test/test_link_bonding_mode4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_link_bonding_mode4.c b/app/test/test_link_bonding_mode4.c index c35129f..02380f9 100644 --- a/app/test/test_link_bonding_mode4.c +++ b/app/test/test_link_bonding_mode4.c @@ -1181,7 +1181,6 @@ test_mode4_expired(void) { struct slave_conf *slave, *exp_slave = NULL; struct rte_mbuf *pkts[MAX_PKT_BURST]; - struct rte_mbuf *pkt = NULL; int retval; uint32_t old_delay; @@ -1239,7 +1238,9 @@ test_mode4_expired(void) /* Remove replay for slave that supose to be expired. */ if (slave == exp_slave) { while (rte_ring_count(slave->rx_queue) > 0) { - rte_ring_dequeue(slave->rx_queue, (void **)&pkt); + void *pkt = NULL; + + rte_ring_dequeue(slave->rx_queue, &pkt); rte_pktmbuf_free(pkt); } } -- 1.9.1