From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ixgbe: Fix clang compilation issue Date: Tue, 30 Sep 2014 19:14:45 +0200 Message-ID: <4234350.b4MBTPmRMN@xps13> References: <1412070008-4782-1-git-send-email-bruce.richardson@intel.com> <2306E3D2-B159-42B0-AA59-3B3400E9A2A6@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Return-path: In-Reply-To: <2306E3D2-B159-42B0-AA59-3B3400E9A2A6-CWA4WttNNZF54TAoqtyWWQ@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" > > Issue reported by Keith Wiles. > > Clang fails with an error about a variable being used uninitialized: > > > > CC ixgbe_rxtx_vec.o > > /home/keithw/projects/dpdk-code/org-dpdk/lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c:67:30: > > error: variable 'dma_addr0' is uninitialized > > when used here [-Werror,-Wuninitialized] > > dma_addr0 = _mm_xor_si128(dma_addr0, dma_addr0); > > ^~~~~~~~~ > > > > This error can be fixed by replacing the call to xor which > > takes two parameters, by a call to setzero, which does not take any. > > > > Signed-off-by: Bruce Richardson > > Acked-by: Keith Wiles Acked and applied Thanks -- Thomas