Re: [dpdk-dev] [PATCH] ethdev: fix build with gcc 5.4.0

2017-07-13 Thread Thomas Monjalon
06/07/2017 23:45, Thomas Monjalon: > Seen on Ubuntu 16.04 with GCC 5.4.0: > > lib/librte_ether/rte_ethdev.c: In function 'get_mac_addr_index': > lib/librte_ether/rte_ethdev.c:2369:26: error: > 'dev_info.max_mac_addrs' may be used uninitialized in this function > > Indeed, rte_eth_dev_info_get() d

[dpdk-dev] [PATCH] ethdev: fix build with gcc 5.4.0

2017-07-06 Thread Thomas Monjalon
Seen on Ubuntu 16.04 with GCC 5.4.0: lib/librte_ether/rte_ethdev.c: In function 'get_mac_addr_index': lib/librte_ether/rte_ethdev.c:2369:26: error: 'dev_info.max_mac_addrs' may be used uninitialized in this function Indeed, rte_eth_dev_info_get() do not write into dev_info if the port_id is not v