From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] enic: fix of compile error Date: Thu, 11 Dec 2014 02:03:26 +0100 Message-ID: <6865199.IsyIyzB9zb@xps13> References: <1418115370-31965-1-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Helin Zhang Return-path: In-Reply-To: <1418115370-31965-1-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > 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 Acked-by: Thomas Monjalon Applied Thanks -- Thomas