[dpdk-dev] [PATCH] ixgbe: Fix clang compilation issue

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Sep 30 19:14:45 CEST 2014


> > 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 <bruce.richardson at intel.com>
> 
> Acked-by: Keith Wiles <keith.wiles at windiver.com>

Acked and applied

Thanks
-- 
Thomas


More information about the dev mailing list