ixgbe: fix build with clang
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 30 Sep 2014 09:40:08 +0000 (10:40 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 30 Sep 2014 15:34:17 +0000 (17:34 +0200)
commitc6d8b70a3006f50b77a5b9896236641565681a51
treef8d83d3f4bc204908fd79f345ea226898c2b58d2
parent522b837939e49602df8c9f2b246c0d863cc85917
ixgbe: fix build with clang

Clang fails with an error about a variable being used uninitialized:

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.

Reported-by: Keith Wiles <keith.wiles@windriver.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c