net/enic: fix build with gcc 7.1
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Jun 2017 16:42:10 +0000 (17:42 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Jun 2017 20:54:31 +0000 (22:54 +0200)
commita45962823d863890265bd9033be09a33afb6199f
treee84247978e9cb54094a68adc5da2ecb2e53f35c5
parent92c0b132f24f9ab73aff22c4162121a145cb3f55
net/enic: fix build with gcc 7.1

build error:

.../dpdk/drivers/net/enic/base/vnic_dev.c:
  In function ‘vnic_dev_get_mac_addr’:
.../dpdk/drivers/net/enic/base/vnic_dev.c:470:12:
  error: ‘a0’ is used uninitialized in this function
  [-Werror=uninitialized]
  args[0] = *a0;
            ^~~
...dpdk/drivers/net/enic/base/vnic_dev.c:
  In function ‘vnic_dev_classifier’:
...dpdk/drivers/net/enic/base/vnic_dev.c:471:12:
  error: ‘a1’ may be used uninitialized in this function
  [-Werror=maybe-uninitialized]
  args[1] = *a1;
            ^~~
Fixed by providing initial values.

Fixes: 9913fbb91df0 ("enic/base: common code")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/enic/base/vnic_dev.c