enic: fix build with gcc 4.7.2
authorHelin Zhang <helin.zhang@intel.com>
Tue, 9 Dec 2014 08:56:10 +0000 (16:56 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 11 Dec 2014 00:42:03 +0000 (01:42 +0100)
commit77f127bcda2e473d5f544e964690bfee99ad1125
tree5df883bc6543cfef17ef5e50455f4bbd01accdeb
parentf2ef6f21ee2e967cef0de6af7526f8509462d049
enic: fix build with gcc 4.7.2

Compile warnings/errors was found on gcc 4.7.2 as follows. Variables
was reported of being used but uninitialized. Assigning an initial
value to it is needed.

lib/librte_pmd_enic/vnic/vnic_dev.c: In function vnic_dev_get_mac_addr:
lib/librte_pmd_enic/vnic/vnic_dev.c:393:16: error: a1 may be used uninitialized
in this function [-Werror=uninitialized]
lib/librte_pmd_enic/vnic/vnic_dev.c:629:10: note: a1 was declared here
lib/librte_pmd_enic/vnic/vnic_dev.c: In function vnic_dev_set_mac_addr:
lib/librte_pmd_enic/vnic/vnic_dev.c:393:16: error: a1 may be used uninitialized
in this function [-Werror=uninitialized]
lib/librte_pmd_enic/vnic/vnic_dev.c:980:10: note: a1 was declared here

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_enic/vnic/vnic_dev.c