enic: fix initialization error with clang
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 5 Dec 2014 15:57:11 +0000 (15:57 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 5 Dec 2014 21:09:23 +0000 (22:09 +0100)
commit06554d0240c33d972b3a15efbe43e61e09c46d13
tree14c778f8d3c9f030acb06f03c81b0fb37c3bcd59
parenta3a03e13a6b2e33efeae2ae99a63159193981a7a
enic: fix initialization error with clang

This patch fixes the following compiler error raised by clang 3.3
on FreeBSD 10:

  CC enic_clsf.o
lib/librte_pmd_enic/enic_clsf.c:99:25: fatal error: missing field 'u' initializer [-Wmissing-field-initializers]
        struct filter fltr = {0};

It fixes it by changing the initializer to set a named field to zero,
thereby automatically setting the rest of the unnamed fields also to
zero.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_enic/enic_clsf.c