[dpdk-dev,v2,2/2] test: fix strict aliasing rule error in link bonding mode 4 test
Commit Message
Fix strict aliasing rule error seen in gcc 4.4
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
---
app/test/test_link_bonding_mode4.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
@@ -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);
}
}