diff mbox series

[MONARCH_LTS,2/2] pktio: GCC 7 fixes

Message ID 20170711211812.9348-2-bill.fischofer@linaro.org
State New
Headers show
Series [MONARCH_LTS,1/2] build: GCC 7 fixes | expand

Commit Message

Bill Fischofer July 11, 2017, 9:18 p.m. UTC
From: Brian Brooks <brian.brooks@arm.com>


The GCC 7 series introduces changes that expose ODP compilation
issues. These include case statement fall through warnings, and
stricter checks on potential string overflows and other semantic
analysis.

Fixes: https://bugs.linaro.org/show_bug.cgi?id=3027

Signed-off-by: Brian Brooks <brian.brooks@arm.com>

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
 test/validation/pktio/pktio.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.11.0
diff mbox series

Patch

diff --git a/test/validation/pktio/pktio.c b/test/validation/pktio/pktio.c
index 4e93e9b4..1b73697a 100644
--- a/test/validation/pktio/pktio.c
+++ b/test/validation/pktio/pktio.c
@@ -1410,7 +1410,9 @@  int pktio_check_statistics_counters(void)
 void pktio_test_statistics_counters(void)
 {
 	odp_pktio_t pktio_rx, pktio_tx;
-	odp_pktio_t pktio[MAX_NUM_IFACES];
+	odp_pktio_t pktio[MAX_NUM_IFACES] = {
+		ODP_PKTIO_INVALID, ODP_PKTIO_INVALID
+	};
 	odp_packet_t pkt;
 	odp_packet_t tx_pkt[1000];
 	uint32_t pkt_seq[1000];