From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pawel Wodkowski Subject: [PATCH v2 2/2] test: fix strict aliasing rule error in link bonding mode 4 test Date: Fri, 27 Mar 2015 11:56:01 +0100 Message-ID: <1427453761-20019-3-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> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1427453761-20019-1-git-send-email-pawelx.wodkowski-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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