[dpdk-dev] [PATCH 10/10] test/test: fix gcc 7 compiler error

Bruce Richardson bruce.richardson at intel.com
Thu May 4 17:38:22 CEST 2017


GCC flags an uninitialized value, so provide an initializer.

Fixes: 3a17ff401f1e ("test/eventdev: add basic SW tests")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 test/test/test_eventdev_sw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test/test_eventdev_sw.c b/test/test/test_eventdev_sw.c
index fd6447e..3abeaef 100644
--- a/test/test/test_eventdev_sw.c
+++ b/test/test/test_eventdev_sw.c
@@ -2526,7 +2526,7 @@ parallel_basic(struct test *t, int check_order)
 	int i;
 	uint32_t deq_pkts, j;
 	struct rte_mbuf *mbufs[3];
-	struct rte_mbuf *mbufs_out[3];
+	struct rte_mbuf *mbufs_out[3] = {0};
 	const uint32_t MAGIC_SEQN = 1234;
 
 	/* Create instance with 4 ports */
-- 
2.9.3



More information about the dev mailing list